Bipolar resistance switching characteristics in a thin Ti–Ni–O compound film