A quantum mechanical study of the interaction of water with rutile TiO2 in photoelectrochemical water splitting