Pair potential for water from symmetry-adapted perturbation theory