Swarm Traps: Principles and Design