Semiconducting-like filament formation in TiN/HfO2/TiN resistive switching random access memories