Dynamic load balancing for network intrusion detection systems based on distributed architectures