Thin film compound phase formation sequence: An effective heat of formation model