An improved algorithm for the normal contact stiffness and damping of a mechanical joint surface