Polymer-Functionalized Magnetic Nanoparticles: Synthesis, Characterization, and Methylene Blue Adsorption