Text this: Characterizing sample degradation from synchrotron based X-ray measurements of ultra-thin exfoliated flakes