A Model of the Development of the Global Energy System and its Application