A fully integrated CMOS magnetic current monitor