Preparation and characterization of magnetic nanoparticles with controlled magnetization