Structural chemistry, monoclinic-to-orthorhombic phase transition, and CO2 adsorption behavior of the small pore scandium terephthalate, Sc2(O2CC6H4)CO2)3, and its nitro- and amino-functionalized derivatives.