Stability of rubble mound breakwaters and shore revetments