Implementation of an Industry 4.0 system to optimally manage chemical plant operation