Mathematical Modeling of the Dynamics of Macroscopic Structural Transformations in Self-Propagating High-Temperature Synthesis