Influence of preoperative factors on the gain in flexion after total knee arthroplasty.