Modelling of 3d revolute joint with clearance and contact stiffness