Understanding and predicting wave erosion of marsh edges