Adiabatic Hamiltonian deformation, linear response theory, and nonequilibrium molecular dynamics