Human Motion Sensor Based On Functional Electrical Stimulation And Electromyography Analysis