Investigation of Donnan equilibrium in charged porous materials—a scale transition analysis