How gas turbine generator works