Direct determination of hydrogen-bonded structures in resonant and tautomeric reactions using ultrafast electron diffraction.