Exploitation of Nonlinear Behavior to Improve the Performance of a Magnetic Sensor