Water-mediated interactions between hydrophobic and ionic species in cylindrical nanopores.