Flash pyrolysis of biomass for the production of renewable chemicals