Economic and energetic analysis of capturing co2 from ambient air