The effects of herbivory and granivory on terrestrial plant succession