Mathematical model for the titanium-carbon system combustion