Hybrid Systems Diagnosis and Control Reconfiguration for Manufacturing Systems