Nernst-Planck transport theory for (reverse) electrodialysis: I. Effect of co-ion transport through the membranes