Valorisation of biorefinery by-products leading to closed loop systems with improved economic and environmental performance