On the merits of using multi-stage and counterflow electrodialysis for reduced energy consumption