Text this: Tracking photophysical relaxation in spiropyran with simulated time-resolved X-ray absorption spectroscopy.