Improving fast-switching free energy estimates by dynamical freezing