Selective resource allocation may promote a sex ratio in pollinator fig wasps more beneficial for the host tree