Memristive switching mechanism for metal/oxide/metal nanodevices.