Social complexity influences brain investment and neural operation costs in ants