Advanced Persistent Threat Detection: A Particle Swarm Optimization Approach