Torsional oscillator magnetometer for high magnetic fields