A 2-D model of electrodialysis stacks including the effects of membrane deformation