A unified model of the structure and function of primate visual cortex