The functional organization of the diencephalon