the sun is used for helping plants convert carbon dioxide and water to sugar and oxygen