Preparation and characterization of magnetic chitosan nanospheres