Water pair and three-body potential of spectroscopic quality from Ab initio calculations