The evolution of species recognition in competitive and mating contexts : the relative efficacy of alternative mechanisms of character displacement