Design of a Low-cost GPS/magnetometer System for Land-based Navigation: Integration and Autocalibration Algorithms