An integrated functional systems approach to improving diagnosis in complex process systems