Delve into the theoretical framework of distillation processes within chemical engineering. Analyze the thermodynamics and mass transfer principles governing separation efficiency, considering factors such as vapor-liquid equilibrium, tray efficiencies, and energy consumption, in designing and optimizing distillation columns.