Molecular logic of cellular diversification in the mouse cerebral cortex