A study of electronic structure of FeSe$_{1-x}$Te$_{x}$ chalcogenides by Fe and Se K-edge x-ray absorption near edge structure measurements