Causes and consequences of sexual dimorphism in damselflies