From Intrusion Detection to Intrusion Detection and Diagnosis: An Ontology-Based Approach