Functional polymers in electrolyte optimization and interphase design for lithium metal anodes