Sustainable production of pharmaceutical, nutraceutical and bioactive compounds from biomass and waste