Electronic Properties of Semiconductor and Metallic Clusters