Sensory representations optimized for the natural environment