The world’s coastal cities are going under. Here’s how some are fighting back