Organic Electrolyte Design for Rechargeable Batteries: From Lithium to Magnesium.