An all-coupling-constant gauge-invariant variational calculation for hamiltonian lattice gauge theories