Capacitive Charging and Desalination with Porous Electrodes