The timing of decreasing coastal flood protection due to sea-level rise