Multivariate statistical process control for fault detection and diagnosis