Electrodialysis of acid effluents containing metallic divalent salts: recovery of acid with a cation-exchange membrane modified in situ