Biorefineries: targeting energy, high value products and waste valorization