Fabrication and photoelectrochemical performance of Ag/AgBr sensitized TiO2 nanotube arrays for environmental and energy applications