Bifurcation of synchronization as a nonequilibrium phase transition