Coexistence of unipolar and bipolar resistive switching in Pt/NiO/Pt