Exponentially correlated Gaussian functions in variational calculations: Energy expectation values in the ground state helium dimer