Separation of carbon dioxide from flue gases using membrane contactors