Combustion synthesis of metal carbides: Part I. Model development