Magnetic nanoparticles and their application in sustainable environment