Electronics and sample cell for the collection of time-resolved X-ray absorption spectra