Solvent effects in ionic transport through transmembrane protein channels