Optical properties of titanium dioxide nanotube arrays