Influence of implantation of a total hip endoprosthesis on the ipsilateral leg alignment: the effect of sex and dysplasia of the hip