Using differential geometry to characterize and analyse the morphology of joints