Detonation wave propagation in semi-confined layers of hydrogen–air and hydrogen–oxygen mixtures