Waste treatment and resource recycling