Sex ratio and the evolution of aggression in fruit flies