a tree converts carbon dioxide into oxygen while the sun is up and the leaves are green