A 30-year-old woman is evaluated for progressive difficulty walking and numbness in both feet of 1 to 2 months' duration. She is otherwise healthy. She has followed a vegan diet for the past several years. Her only medication is an oral contraceptive pill.

On physical examination, temperature is 37.0 °C (98.6 °F), blood pressure is 120/66 mm Hg, pulse rate is 76/min, and respiration rate is 12/min; BMI is 25. She has decreased sensation and vibratory sense in both legs below the knees. No other neurologic deficits are observed.

Laboratory studies:

Hemoglobin

10.4 g/dL (104 g/L)

Leukocyte count

2800/µL (2.8 × 109/L)

Mean corpuscular volume

105 fL

Vitamin B12

210 pg/mL (155 pmol/L)

A peripheral blood smear is shown.

Which of the following is the most appropriate diagnostic test to perform next?