what is the process of carbon dioxide leaving leaves?