Sand-mud segregation in estuaries and tidal basins