Volume resistive switching in metallic perovskite oxides driven by the metal-insulator transition