Depth-Dependent Scanning Photoelectron Microspectroscopy Unravels the Mechanism of Dynamic Pattern Formation in Alloy Electrodeposition