Nonlinear energy transfer in classical and quantum systems.