Stiffness control of the leg in perturbed gait and posture by