Design and implementation of a low-cost mechatronic shoe for biomechanical analysis of the human locomotion