Formation and evolution of two-dimensional cellular detonations