Resistance switching in HfO 2-based OxRRAM devices