Behavioral, ecological and evolutionary mechanisms underlying caterpillar-ant symbioses