On the generation mechanisms of short-scale unbalanced modes in rotating two-layer flows with vertical shear