Device containing compound having indolocarbazole moiety and divalent linkage