Ab initio molecular orbital calculations on ion pair-water complexes of metal halides and oxides