what is the difference between flexion and extension