Solvent Effects on the Adsorption Geometry and Electronic Structure of Dye-Sensitized TiO2: A First-Principles Investigation