The effects of joint clearance on position and orientation deviation of linkages and manipulators