A simple dynamical model of edge localized mode phenomena