Stability and bifurcation in Yang-Mills theory