Optimal Neural Population Codes for High-dimensional Stimulus Variables