Synthesis of magnesium calcites