Producing fuels and chemicals from lignocellulosic biomass