Effect of the channel geometries on flow regimes of a viscoelastic surfactant solution in a cavity