Erosion of protective coatings