A new way to remove salts and toxic metals from water