Switching properties of vanadium doped TiO2 thin films prepared by magnetron sputtering