Design and Control of a Lower-Limb Exoskeleton for Assistance and Rehabilitation