Computer-aided reconstruction of hip joint in revision arthroplasty