Thermal behavior and decomposition mechanism of ammonium perchlorate in the presence of C-N conjugated polymers based on diaminomaleonitrile.