Comparative analysis of constraints and caste differences in brain investment among social paper wasps