Numerical investigation of mode transition and hysteresis in a cavity-based dual-mode scramjet combustor