Nature of the filament formed in HfO2-based resistive random access memory