The design and evaluation of a variable stiffness mechanism for a knee-ankle prosthesis