Effect of precursor thermal history on the formation of amorphous and crystalline calcium carbonate