On global instabilities of separation bubbles and their control in external and internal aerodynamics applications