An algebraic input–output equation for planar RRRP and PRRP linkages