Time-Resolved X-ray Absorption Spectroscopy in (Photo)Electrochemistry