Modelling erosion of gravel/shingle beaches and barriers