Distillation theory and its application to optimal design of separation uni