SMS: Stochastic population oscillators in ecology and neuroscience