A 29-year-old woman complains of fatigue, bloating and intermittent diarrhoea. Examination reveals a pale, thin woman with a BMI of 18 kg/m^2. Blood tests show microcytic anaemia and low ferritin. What is the most appropriate initial investigation to confirm the suspected diagnosis?