Magnetic materials and water treatments for a sustainable future