Ink-substrate interactions during 3D printing revealed by time-resolved coherent X-ray scattering