A model for AP-based composite propellant ignition including gas-phase and subsurface reactions