New nanoporous metal foams uses sunlight to remove micropollutants from water