Synthesis of TiO2-polyaniline core-shell nanofibers and their unique UV photoresponse based on different photoconductive mechanisms in oxygen and non-oxygen environments.