Hopf and zero-Hopf bifurcations on the Hindmarsh-Rose system