Effect of confinement on three-dimensional stability in the wake of a circular cylinder