The role of separated shear layers in unstable oscillations of a rectangular cylinder around a resonant velocity