Titania nanotube formation in chloride and bromide containing electrolytes