Evolution of insect mating systems