A multibody model for the optimization of hip arthroplasty in relation to range of movement