Bipolar resistive switching on Ti/TiO2/NiCr memory cells