Bar formation in tidal channels:analogy with fluvial bars