Medical and psychological comorbidity predicts poor pain outcomes after total knee arthroplasty.