Electronic structure of carbon nanoparticles