Membrane distillation of industrial wastewater