Modeling the Melting and Dissolution Stages During Thermal Processing of Intermetallic Coatings from Layered Precursors