Reversible switching mode change in Ta2O5-based resistive switching memory (ReRAM)