Gait Analysis and Pedestrian Navigation Using a Foot-Mounted Inertial Sensor