Mechanism for bipolar resistive switching in transition-metal oxides | Synapse