The territoriality threshold: a model for mutual avoidance in dragonfly mating systems