Flame Instability and Transition to Detonation in Supersonic Reactive Flows