Electrical effects during phase transformations: Dissolution and preciptitation potentials of electrolytes