Polymer having indolocarbazole moiety and divalent linkage