Three-dimensional kinematic measurement of skeletal joint using medical images and clinical application