Enhancing interoperability and stateful analysis of cooperative network intrusion detection systems