Resistive switching properties of TiO2 film for flexible non-volatile memory applications