Afferent and intrinsic organization of laminated structures in the brain