Automated Kinematic Analysis of Closed-Loop Planar Link Mechanisms