Theta-gamma coupling: a nonlinear dynamical model