Influence of forest management and previous herbivory on cattle diets