Optimal sequestration of carbon dioxide and phosphorus in soils by gypsum amendment