Using heat integration for the distillation unit and applying a heat recovery system can save a substantial amount of energy in purification operations