Bi-stable resistive switching characteristics in Ti-doped ZnO thin films