Titanium anodes for electrolysis of water