The change in the action integral for nearly adiabatic systems