Zaslat SMS: Application of irreversible thermodynamics to distillation