The evolution of sexual dimorphism in animals: Hypotheses and tests