Electronic properties of FeSe1−xTex probed by x-ray emission and absorption spectroscopy