A Simple Numerical Method for the Kinematic Analysis of Spatial Mechanisms