Optimal Neural Codes for Natural Stimuli