Heterogeneous growth mechanism of ZnO nanostructures and the effects of their morphology on optical and photocatalytic properties