Use of two magnetometers for magnetic field measurements on a spacecraft