Energetics Of Substitution Effects On The Stability Of Metal-Organic Frameworks