Monitoring dynamic electrochemical processes with in situ ptychography