The Role of MES in Smart Factories and Industry 4.0