Linking process and product in terrestrial carbonates using a solution thermodynamic approach