Automated femoral landmark extraction for optimized prosthesis placement in total hip arthroplasty