Selective nitrogen capture by porous hybrid materials containing accessible transition metal ion sites.