Sediment exchange between flats and channels in tidal inlets