An experimental and theoretical study on the electronic and structural properties of CdSe@TiO2 nanotube arrays.