Zero-Hopf bifurcation for a class of Lorenz-type systems