Species-specific influence of group composition on collective behaviors in ants