Bifurcation in cavity quantum electrodynamics and its applications