Which layer of Earth creates its magnetic field?