Towards time-resolved X-ray absorption spectroscopy in organic polymers