Formation and function of 3D chromatin domains in gene regulation