Determinants of plant and herbivore interactions along elevation gradients