In situ fabrication of CdSe/TiO2 nanotube arrays with enhanced photoelectrical and catalytic activity