Quasi-digital front-ends for current measurement in integrated circuits with giant magnetoresistance technology