Ammonium perchlorate moisture quantitative detection using terahertz spectroscopy combined with chemometrics