Numerical model of an externally fired gas turbine , including an arbitrary number of stages in expansion and compression processes