Impact of comorbidity on the short- and medium-term risk of revision in total hip and knee arthroplasty