Study of resistive random access memory based on TiN/TaOx/TiN integrated into a 65nm advanced complementary metal oxide semiconductor technology