Soft actuation in cyclic motions: Stiffness profile optimization for energy efficiency