Polymer materials design for lithium batteries