Second-order neurons of both the specific and nonspecific ascending pathways terminate in the ________.
somatosensory cortex
medulla
thalamus
spinal cord