The adsorption of H2O on TiO2 and SnO2(110) studied by first-principles calculations