Tilt-Compensated Magnetic Field Sensor