Algebraic Algorithm for the kinematic analysis of slider-crank/rocker mechanisms