Structure and Dynamics of an Electrolyte Confined in Charged Nanopores