Quasi-digital conversion for resistive devices: Application in GMR-based IC current sensors