Use of biomass for the production of chemicals and fuels by including process intensification and safety aspects