Ecology, sexual selection, and the evolution of mating systems.