Polymer electrolytes for safer lithium-based batteries: synthesis, characterization, and structure-function correlation