Three-dimensional nickel foam templated MgCo2O4 nanowires as an efficient catalyst for the thermal decomposition of ammonium perchlorate