Subcritical deflagration and prognostication of combustion from microscopic features of fuel and catalyst in ammonium perchlorate systems: A thermodynamic approach