Azide-functionalized lanthanide-based metal-organic frameworks showing selective CO2 gas adsorption and postsynthetic cavity expansion.