Dogs use the Earth's magnetic field to take shortcuts