Measurement of knee joint flexion