Utilizing unsteady curved detonation analysis and detailed kinetics to study the direct initiation of detonation in H2–O2 and H2–Air mixtures