Hotspot characterization and detonation initiation in thermally stratified reactive mixtures