Real-Time Position Sensing for Biofeedback-Based Gait Training