Making oxygen with magnets could help astronauts breathe easy