Ab Initio Mechanistic Investigation For The Formation Of In-Mofs