Linking Stimulus Structure to Neural Activity and Perception in the Olfactory System