Magnetic field measurement with magnetoresistive Sensors