Algebraic Methods for Determining Hamiltonian Hopf Bifurcations in Three-Degree-of-Freedom Systems