Polymeric organic electrode materials for rechargeable batteries