The terminal CNV and stimulus discriminability in motor and sensory tasks