Motion analysis as an outcome measure for hip arthroplasty.