Protein motions during catalysis by dihydrofolate reductases