Invalidity of continuum theories of electrolytes in nanopores