Theory of ionic transport in crystallographic tunnels