Ab initio study of the gas-phase equilibrium between (H2O)4 and (H2O)8