The effect of concentration gradients on deflagration-to-detonation transition in a rectangular channel with and without obstructions – A numerical study