Process design and energy requirements for the capture of carbon dioxide from air