Electronic properties of MoS2 nanoparticles