Mode transition and combustion-induced shock train dynamics in a cavity-based dual-mode scramjet