An X-ray absorption spectrometry device optimized for low photon fluxes