A low power CMOS magnetic field sensor consisting of a MAGFET and a pulse width modulated readout circuit