what is the significance of earth's magnetic field