Simultaneous measurement of absorption and circular dichroism in a synchrotron spectrometer