Metal carbonates decompose on heating to give metal oxide and carbon dioxide. Which of the metal carbonates is most stable thermally?

1. MgCO3

2. CaCO3

3. SrCO3

4. BaCO3