In situ formation of polymer electrolytes using a dicationic imidazolium cross-linker for high-performance lithium ion batteries