Thermodynamic Description of Chemical Reactions in a Titanium–Aluminum–Hexamethylenetetramine System under Conditions of Self-Propagating, High Temperature Synthesis