The evolution of male-female dominance relations in primate societies