Hierarchical PANI/ZnO nanocomposite: synthesis and synergistic effect of shape-selective ZnO nanoflowers and polyaniline sensitization for efficient photocatalytic dye degradation and photoelectrochemical water splitting