Separation of CO2 from flue gas/exhaustgas