Synthesis and characteristics of carbon encapsulated magnetic nanoparticles produced by a hydrothermal reaction