Transition from migrating alternate bars to steady central bars in channels with variable width