From control to constraint: a study of reproduction in the eusocial honeybee and the solitary red mason bee