Range of motion assessment during total hip arthroplasty