Bifurcations in brain dynamics