Magnetic moment measurement of magnetic nanoparticles