A system-level diagnostic approach for networked control systems in vehicles