Tuning the Dimensionality of Interpenetration in a Pair of Framework-Catenation Isomers To Achieve Selective Adsorption of CO2 and Fluorescent Sensing of Metal Ions.