The Dynamics of Energy Systems and the Logistic Substitution Model