Energies of ground-state bands of even nuclei from generalized variable moment of inertia models