Heavy-ion upset immunity of RRAM cells based on thin HfO2 layers