A Telerehabilitation Framework for Lower-Limb Functional Recovery