Higher patient knowledge and resilience improve the functional outcome of primary total knee arthroplasty