CFD simulation of channels for direct and reverse electrodialysis