Nonaqueous magnesium electrochemistry and its application in secondary batteries | Synapse