High-efficiency bulk heterojunction memory devices fabricated using organometallic halide perovskite:poly(N-vinylcarbazole) blend active layers.