Resistive switching and impedance characteristics of M/TiO2−x/TiO2/M nano-ionic memristor