Homogeneous nucleation of magnesium hydroxide