Generalized study of crank-rocker mechanisms driven by a d.c. motor Part I. Mathematical model