Resonant modification and destruction of adiabatic invariants