Molecular understanding of carbon dioxide interactions with ionic liquids