Dehydration and ionic conductance quantization in nanopores