Optimization of the Process for Absorbing Carbon Dioxide from Flue Gases