Partial Differential Equation Models and Riemann–Stieltjes Integrals in Measuring Sustainability