On the Equilibrium of Heterogeneous Substances