Hierarchical PANI/CdS nanoarchitecture system for visible light induced photocatalytic dye degradation and photoelectrochemical water splitting