Association of age and spinopelvic function in patients receiving a total hip arthroplasty