Linking optical and electronic properties to photoresponse of heterojunctions based on titania nanotubes and chromium, molybdenum, and tungsten oxides