A 43-year-old man sustains a wound to the lateral neck. This results in weakness of elevation and retraction of the shoulder on the ipsilateral side and difficulty turning the head up and toward the contralateral side. No sensory changes are present. Which of the following nerves most likely has been injured?