Analytical solution to the Poisson-Nernst-Planck equations for the charging of a long electrolyte-filled slit pore