Biomass utilisation for energy and chemicals