Edge Computing for Environment-Based Locomotion Modes Prediction and Terrain Features Calculation in Lower Limb Prostheses | Synapse