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