The effect of intrinsic defects on resistive switching based on p-n heterojunction | IEEE Conference Publication | IEEE Xplore