Isostructural functionalization by –OH and –NH2: different contributions to CO2 adsorption