Real-time gait reconstruction for virtual reality using a single sensor