Design, analysis, and simulation of a planar serial–parallel mechanism for a compliant robotic fish with variable stiffness