Understanding Solvent Effects on Adsorption and Protonation in Porous Catalysts