Exploring the mechanism and dynamics of thymidylate synthase