Resistive switching properties and photoabsorption behavior of Ti ion implanted ZnO thin films