Bifurcations in systems of three degrees of freedom