Two-dimensional radiation-hydrodynamics calculations of the formation of O-B associations in dense molecular clouds