Morphology-dependent photocatalytic and gas-sensing functions of three-dimensional TiO2–ZnO nanoarchitectures