Design of a mechanism for converting the energy of knee motions by using electroactive polymers