Between magnesium carbonate and calcium carbonate, which one is more thermally stable? Explain your answer.