Preparation and characterization of magnetic nanoparticles with chitosan coating