Investigation of the plasma electrolytic oxidation mechanism of titanium