The role of cyanobacteria in crystallization of magnesium calcites