Ternary Flash Memory with a Carbazole-Based Conjugated Copolymer: WS2 Composites as Active Layers.