Semiempirical Determination of the Hydrogen Bond Energy for Water Clusters in the Vapor Phase. I. General Theory and Application to the Dimer