Divalent metal halide double salts in equilibrium with their aqueous solutions: I. Factors determining their composition