Spectral and TG or DTA studies on the nature of thermal and radiolytic decomposition of ammonium perchlorate and permanganate