A method for determining the principal axes and center of mass of the lower limb segments for use in motion analysis