(a) Band alignment of PN junction under photoconductive mode. (b) Band alignment of PN junction under photovoltaic mode.