Thermal transformations of vaterite and calcite