plants convert light to sugar