Nonlinear dynamics of capacitive charging and desalination by porous electrodes.