Analysis of set and reset mechanisms in Ni/HfO2-based RRAM with fast ramped voltages