Light-driven lignocellulosic biomass conversion for production of energy and chemicals