Origin of defects responsible for charge transport in resistive random access memory based on hafnia