Optimal decoding of neural population responses in the primate visual cortex