Detonation Synthesis of Carbon-Encapsulated Magnetic Nanoparticles