Supramolecular and covalent polymer networks for improved stability of lithium-ion batteries