Plant sex and the evolution of plant defenses against herbivores