Enabling non-flammable Li-metal batteries via electrolyte functionalization and interface engineering