Resistive Switching in a p-n Junction TiN/ZnO/NiO/Pt Structure | Synapse