A Natural History of Sex: The Ecology and Evolution of Mating Behavior