The role of Mg2+ as an impurity in calcite growth.