Functional design of advanced polymer architectures for improved lithium-ion batteries