Nonlinear stability of incoherence and collective synchronization in a population of coupled oscillators