Laser monitoring of dynamic behavior of magnetic nanoparticles in magnetic field gradient