Highly selective separation of carbon dioxide from nitrogen and methane by nitrile/glycol-difunctionalized ionic liquids in supported ionic liquid membranes (SILMs).