Explicitly correlated Gaussian functions in variational calculations: The ground state of the beryllium atom.