High altitude measurements of the Earth's magnetic field with a proton precession magnetometer