Synchronization based pattern selection in coupled neuronal oscillators