of the first electrodes and the second electrodes, including a stacked structure of a P-type network and an N-type network, and having a diode characteristic, the stacked structure comprising an upper portion, a lower portion, and a heterojunction defined between the upper portion and the lower portion, one of the upper or lower portions being the P-type network, and the other one of the upper or