Effect of Solvent on Semiconductor Surface Electronic States: A First-principles Study