Hybrid membrane distillation and wet scrubber for simultaneous recovery of heat and water from flue gas