Formulating the Electrolyte Towards High-Energy and Safe Rechargeable Lithium-Metal Batteries.