The Evolution of Mating Systems in Insects and Arachnids