Shock-wave evolution in a chemically reacting solid