Modeling the intermetallic coating growth during reactive thermal processing of layered precursors