A hierarchical model for analysing the stability of vegetation patterns created by grazing in temperate pastures