Compartmentalization of the cell nucleus and spatial organization of the genome