thoracic spinal nerves function