Ultrafast electron diffraction: complex landscapes of molecular structures in thermal and light-mediated reactions