Local cortical desynchronization and pupil-linked arousal differentially shape brain states for optimal sensory performance