A study on the multiscale mechanisms of transport in water desalination systems using capacitive deionization