Electrochemical and photoelectrical properties of titania nanotube arrays annealed in different gases