Tightly Integrated Motion Classification and State Estimation in Foot-Mounted Navigation Systems