Numerical simulation of flame acceleration and deflagration to detonation transition in hydrogen-air mixture