Shock wave propagation through nonuniform and nonequilibrium gas regions