The direct linearization method applied to position error in kinematic linkages