A 23-year-old man is evaluated for chronic diarrhea. He has had intermittent loose stools over the past 2 to 3 years; however, over the past 6 months, diarrhea has become more severe (five to six bowel movements per day) and constant. Stools are described as mushy and malodorous and are accompanied by crampy abdominal pain and bloating. He has lost 2.3 kg (5.0 lb) over the past 6 months despite consuming more calories. He has not had fever or gastrointestinal bleeding and has no history of foreign travel. He has type 1 diabetes mellitus that is well controlled with insulin. He does not smoke cigarettes or drink alcohol.

On physical examination, vital signs are normal. He has evidence of muscle wasting and pedal edema. The abdomen is scaphoid but soft with increased bowel sounds. No distention or tenderness is noted.

Laboratory studies reveal a hemoglobin level of 10.4 g/dL (104 g/L) and a mean corpuscular volume of 100 fL.

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