Manufacturing Execution Systems (Mes): Optimal Design, Planning, and Deployment