Theoretical treatment of the electronic structure of small metallic particles