Investigation on the Stabilizing Effect of Titanium in HfO2-Based Resistive Switching Devices With Tungsten Electrode