Stimulus discrimination by the polymodal sensory neuron