Principles and applications of swarm intelligence for adaptive routing in telecommunications networks