Coexistence of localized and itinerant electrons in BaFe2X3 (X = S and Se) revealed by photoemission spectroscopy