Risk factors for periprosthetic joint infection following total hip and knee arthroplasty