Understanding the Role of the Ti Metal Electrode on the Forming of HfO2-based RRAMs