Pyrolysis of lignocellulosic biomass