Application of surgical navigation to total hip arthroplasty