Kinetic calculations and mechanism definition for reactions in an ammonium perchlorate flame