Optimal operation of integrated energy system including power thermal and gas subsystems