During photosynthesis, green plants convert carbon dioxide to