Titanium anode for electrolysis of water