The role of competition and herbivory in biotic resistance against invaders: a synergistic effect