Doping controlled resistive switching dynamics in transition metal oxide thin films