Homeodomain proteins hierarchically specify neuronal diversity and synaptic connectivity