Analysis of artificial hip joints as spherical bearings