Human motion sensor based on Functional Electrical Stimulation and Electromyography analysis