Link found between Earth's magnetic field and oxygen levels