From Molecules to Devices: Mechanistic Analyses of Electrochemical Energy Systems