Text this: Collision cascade and spike effects of X-ray irradiation on optoelectronic devices