Optimizing coastal restoration with the stress gradient hypothesis