Dunes and alternate bars in tidal channels