Effect of temperature gradients in (reverse) electrodialysis in the Ohmic regime