Magnetometer heading estimation through online calibration for land navigation applications