Thermal removal of carbon dioxide from the atmosphere: energy requirements and scaling issues