Computational and Experimental Studies on the Adsorption of CO, N2, and CO2 on Mg-MOF-74