Carbon encapsulation of elemental nanoparticles by spark discharge