The spinal cord extends from the foramen magnum of the skull to the first or second lumbar vertebra, where it terminates in the __________.