An integrated approach to energy recovery from biomass and waste: Anaerobic digestion-gasification-water treatment