A model of C4 photosynthetic acclimation based on least-cost optimality theory suitable for Earth System Model incorporation