Pore-scale study of capacitive charging and desalination process in porous electrodes and effects of porous structures