Transition modes in the combustion of heterogeneous systems with solid-phase products