Polyfunctional Plants for Industrial Waste Disposal. I - Process and equipment design