Model-based fault detection and diagnosis. Part B: applications