Pyrolysis of ammonium perchlorate in a stream of perchloric acid vapor