Integrated pollution and energy recovery from agro-industrial wastes