Sensor Fusion Representation of Locomotion Biomechanics with Applications in the Control of Lower Limb Prostheses