Earth's core and magnetic field