Porous covalent electron-rich organonitridic frameworks as highly selective sorbents for methane and carbon dioxide.