Text this: Mathematical model of a fluxgate magnetometer