Thermodynamic analysis of chemical laser systems