The crystallization of calcium carbonate. IV. The effect of magnesium, strontium and sulfate ions