Earth's magnetic field is thought to originate in the