Text this: Coexistence of unipolar and bipolar resistive switching in optical synaptic memristors and neuromorphic computing