Relative Pose Estimation for the Femoral Component in Computer-Assisted Total Hip Replacement Surgeries