On the origin of enhanced resistive switching behaviors of Ti-doped HfO2 film with nitrogen annealing atmosphere