Modeling of the electronic structure of semiconductor nanoparticles