Synchrotron radiation spectroscopy study of FeCr2X4 (X=S and Se)