Erosion of rocky shore platforms by block detachment from layered stratigraphy