Evaluation of Chemical Structure and Resistance Switching Characteristics of Undoped Titanium Oxide and Titanium–Yttrium Mixed Oxide