Synthesis and characterization of polymer-templated manetic nanoparticles