Redox-active polyimide–polyether block copolymers as electrode materials for lithium batteries