{'fraction_non_alphanumeric': 0.036504938539183206, 'fraction_numerical': 0.026534972288447842, 'mean_word_length': 4.4046184738955825, 'pattern_counts': {'":': 0, '<': 2, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
3D macroporous TiO2 inverse opal binary and ternary composite materials and their photocatalytic activity

This work reports the design of binary and ternary thin film based photocatalysts consisting of 3D macroporous inverse opal (IO) titanium dioxide, IO-TiO2, embedded with gold nanoparticles (AuNPs) and cadmium sulfide (CdS) thin film. The composite materials thus created are IO-TiO2–AuNPs, IO-TiO2– CdS, and IO-TiO2–AuNPs–CdS. The IO-TiO2 3D macroporous films are obtained by a liquid phase coassembly method consisting of the simultaneous self-assembly of polystyrene (PS) nanospheres with a water soluble titania precursor. AuNPs and CdS thin films are integrated to the above IO-TiO2 by in situ synthesis and successive ionic layer adsorption and reaction (SILAR) methods, respectively. The composite materials demonstrated very good photocatalytic proficiency against an organic pollutant analog under UV and visible lighting conditions. The morphologies of the photocatalysts were imaged with scanning electron microscopy (SEM). The elemental components were determined using energy dispersive X-ray (EDX) line analysis, and Raman spectroscopy. UV-visible spectroscopy was used to assess the photocatalytic efficiency of the composites in decomposing organic pollutant analog.


Introduction
Extensive use of organic dyes in industries such as food and drug manufacturing, textiles, paper, pigments, leather, and cosmetics led to water pollution. 1 Most of such dyes and their metabolites are toxic and carcinogenic and tend to create water contamination and thereby endanger public health as well as imposing harmful consequences upon the ecosystem. [2][3][4][5][6] In recent years, the development of energy efficient photocatalysts has been a very intense area of research to treat industrial wastewater containing harmful aromatic compounds and organic dyes. Titanium(IV) oxide is one such photocatalyst that is renowned for being cheap, chemically stable, and non-toxic. 7 Titania has been used in dye-sensitized solar cells, 8,9 antifogging coatings 10 for glass and degradation of herbicides and dyes. 11,12 Due to its large band gap (z3.2 eV) TiO 2 is mostly active in ultra violet light. 13 TiO 2 has been coupled to a narrow band gap semiconductor with a conductive mediator such as gold nanoparticles that exhibit surface plasmon resonance (SPR), 14,15 and this allows easy electron transfer from the conduction band of TiO 2 to the target for reduction and minimizes the risk of electron-hole recombination. 16 Besides the use of compositional variation, one of the possible structural alteration to enhance photocatalytic activity is the use of three dimensionally (3D) ordered macroporous photonic crystals also known as inverse opal (IO). [17][18][19][20] IO photonic crystals have photonic band gaps and have a distinct way of steering light propagation through them. That is why they demonstrate distinctive optical characteristics and structural features namely, slow photon, 17,21,22 large surface area, 23 and multiple scattering. These properties have been utilized in solar cells, 24 polarizers, 25 sensors, 26 and photocatalysis. 27 Photocatalyst fabricated using IO type photonic crystals have high surface : volume ratio due to the presence of interconnected pores, which enables light harvesting and mass transfer. Inverse opal photonic crystals have another characteristic feature known as photonic band gap (PBG), due to which certain frequencies of light circulation is forbidden analogous to electronic band gap where electron ow is regulated in a semiconductor. 21 Therefore in inverse opal photonic crystals, the photons are slowed down near the edges of the PBG and thereby localized in the area of activity of the material enhancing the efficiency of photocarrier generation.
Very recently Zhao et al. synthesized silver nanoparticles (AgNPs) on IO-TiO 2 and demonstrated enhanced visible light driven photocatalytic activity. 15 The photocatalytic enhancement for methylene blue degradation was attributed to the synergistic effect of optimized AgNPs deposition and an ordered macroporous IO-TiO 2 morphology. Lu and co-workers integrated AuNPs into photonic crystals of TiO 2 and demonstrated synergistic enhancement of light harvesting due to the localized surface plasmon resonance (LSPR) of AuNPs. 14 The photonic effect of IO-TiO 2 intensify the LSPR by matching the photonic band gap (PBG) with the wavelength of plasmonic absorption. 14 The efficient pollutant degradation is caused by reactive oxygen species (ROS), which are formed due to the electroreduction of dissolved oxygen with the photogenerated electrons. 28,29 Thirdly, the inadequate use of solar light by TiO 2 alone to function as an efficient photocatalyst can be improved by combining it with a narrow band gap semiconductors. 30 Commonly used narrow band gap semiconductors include CuInS 2 , 31 Cu 2 O, 32 ZnFe 2 O 4 , 33 CdS, 34,35 etc. Among these CdS is the most favorable paring material since it has a narrow band gap of 2.40 eV allowing for a longer excitation wavelength (<516 nm) and more efficient absorption of visible light. 36 In the binary system, TiO 2 -CdS reported by Pant and co-workers 34 the TiO 2 nanoparticles were embedded in carbon nanobers using the electrospinning process with subsequent calcination in the presence of argon. They claim that this strategy enables better adsorption and fast decay of the dye under visible light. 34 In another recent report, Zhang et al. 37 demonstrated controlled self-assembly of CdS nanospheres (NSPs) on TiO 2 nanobelts (TNBs) purely based on electrostatic attractive forces. The prepared binary 1D TNBs/3D CdS NSPs composite material depicted tremendous photocatalytic activity compared to the TNBs and CdS NSPs under visible light. 37 The formation of binary hetero conjugate between TNBs and CdS NSPs improved the electron-hole life time and thereby enhanced the photocatalytic degradation of the dye. This indicated that such fabrication has future implications in boosting photocatalytic activity of binary heterocomposite materials. 37 Zhao et al. recently fabricated a ternary system consisting of TiO 2 -Au-CdS powder where TiO 2 was 3D macroporous inverse opal. 13 They demonstrated that incorporation of AuNPs and CdS into a ternary system was able to enhance the separation of the photogenerated electrons and holes. 13 The ternary system also compensated for the UV-light restrictions that is a weakness of TiO 2 . 13 Under ultraviolet-visible light, the photogenerated electrons in TiO 2 would be transferred to recombine with the holes of CdS, and under visible light electrons would move to the conduction band (CB) of TiO 2 from CdS via AuNPs. 13 In summary, in this ternary system the AuNPs acted as a mediator between TiO 2 and CdS and helped transfer the photogenerated electrons and produced more active sites for reducing H + to H 2 . 13 Kim and co-workers demonstrated that the ternary system containing core-shell Au@CdS on TiO 2 nanobers (TNF) has tremendous potential for low-cost and clean hydrogen production. 38 The comparison of photocatalytic results showed that the Au@CdS/TNF has better efficiency in H 2 production than the Au@CdS/P25 where P25 is commercially available TiO 2 in the presence of visible light. 38 Also, the core-shell Au@CdS prevented formation CdSO 4 from CdS thus preserving the photocatalytic activity. 38 In this report, we fabricated a ternary thin lm system containing inverse opal TiO 2 (IO-TiO 2 ), AuNPs and CdS thin lm on a glass substrate, IO-TiO 2 -AuNPs-CdS. We investigated the photocatalytic degradation of the diazo dye trypan blue (TB) under visible light and UV light irradiation. Also, we have fabricated the binary systems such as IO-TiO 2 -AuNPs and IO-TiO 2 -CdS to compare the photocatalytic activity with the ternary system. We employed various imaging and surface analysis techniques to understand the differed photocatalytic activities of the binary and ternary systems. We however, use thin lms of the IO-TiO 2 on a glass slide in our binary and ternary systems as opposed to powdered form of the IO-TiO 2 , commonly seen in the literature 13,29,[38][39][40] to facilitate ease of extraction of the catalyst systems from aqueous media aer the reaction. Inspired by the available literature results in photocatalytic activity of IO-TiO 2 systems and corresponding binary and ternary systems, this work is an effort to shed light on the development of photocatalysts by combining wide band-gap semiconductor with narrow band-gap semiconductor as well as plasmonic nanoparticles.

Design and fabrication
This report demonstrates the fabrication of binary and ternary thin lm photocatalyst by four step and ve step methods, respectively. The design and fabrication of the different IO-TiO 2 based composite materials on a glass slide are schematically depicted in Fig. 1. First IO-TiO 2 were created by evaporating a coassembly 41,42 mixture of polystyrene (PS) and titanium(IV) bis(ammonium lactate)dihydroxide (TiBALDH) in water onto a vertically standing glass slide in a 45 C incubator for 1-2 days. Subsequently, the slides were calcined at 500 C for 3 hours in a muffle furnace and were le to cool naturally to room temperature (Fig. 1). The obtained IO-TiO 2 composite materials were soaked in a NaAuCl 4 solution, and the adsorbed anions containing Au 3+ were further reduced to AuNPs with ascorbic acid thereby generating IO-TiO 2 -AuNPs. Finally, SILAR method 43,44 was used with slight modication of the literature method to incorporate CdS thin lm into IO-TiO 2 and IO-TiO 2 -AuNPs and plain glass slide creating IO-TiO 2 -CdS, IO-TiO 2 -AuNPs-CdS, and CdS lm on glass slide.

Morphology, SEM images and EDX analysis of the composites
The surface morphologies of the glass slide based composite materials are imaged by Topcon DS150 Field Emission Scanning Electron Microscope (FESEM) as depicted in Fig. 2. Fig. 2a and b present PS lm and bare IO-TiO 2 , respectively. The sizes of the PS spheres were measured to be 272 nm, and a light green iridescence is observed on the digital image of the lm shown in the inset of AuNPs-CdS (green line) in Fig. 3. Finally, Au signal at 2.13 keV is observed only in IO-TiO 2 -AuNPs (blue line), and IO-TiO 2 -AuNPs-CdS (green line) composites. Also, two more prominent signals at 1.04 and 1.74 keV indicate the presence of Na and Si, respectively, and are seen most probably due to the glass substrate.  13 The pure CdS thin lm show absorbance at around 500 nm. In the case of binary IO-TiO 2 -AuNPs composite a broad signal is observed Fig. 1 Schematic representation of fabrication of inverse opal TiO 2 , IO-TiO 2 , binary IO-TiO 2 -AuNPs and ternary IO-TiO 2 -AuNPs-CdS composite materials on glass slides. Approximately 272 nm PS sphere and TiBALDH co-assembly was used to generate the template for the inverse opal. AuNPs were synthesized following in situ method and CdS thin film were incorporated using SILAR technique. around 550 nm, due to the expansion of the absorption of the composite by the surface plasmon resonance (SPR) of the plasmonic AuNPs. 13 Such plasmonic expansion can be revamped by altering the size, and shape of plasmonic nanoparticles. 45,46 The absorption maximum at $520 nm in IO-TiO 2 -CdS indicates the sensitization of TiO 2 absorption by CdS, and this corresponds to literature report. 13,47 In IO-TiO 2 -AuNPs-CdS the presence of both plasmonic AuNPs and narrow band-gap semiconductor CdS the SPR band red shied to $650 nm due to the robust electromagnetic pairing of AuNPs and CdS. 13,48 The direct contact of AuNPs with CdS having higher dielectric constant compared to air would cause red shi of the SPR band. 13,49

Raman spectroscopic characterization of the composites
In order to determine the phase composition, Raman spectra of different composite materials are collected. 38,50 Fig. 5 shows four characteristic signals at 146, 394, 514, and 639 cm À1 assigned to E g , B 1g , B 1g + A 1g and E g , respectively, conrming anatase-phase of TiO 2 (ref. 38 and 51) in four composites namely IO-TiO 2 (black line), binary IO-TiO 2 -AuNPs (blue line), binary IO-TiO 2 -CdS (pink line) and ternary IO-TiO 2 -AuNPs-CdS (green line). There are no additional signals at 234, 447, and 612 cm À1 corresponding to B 1g , E g , and A 1g modes, respectively, of the rutile phase of TiO 2 . In bare CdS lm, the characteristic signal at 306 cm À1 is observed. 38 In the case of IO-TiO 2 -CdS and IO-TiO 2 -AuNPs-CdS the characteristic signal for CdS at 306 cm À1 appear as a shoulder to the B 1g mode of the anatasephase TiO 2 . 38 The other signal of CdS at $603 cm À1 is very broad and buried in the baseline.

Photocatalytic reactions by the composites in visible light
As depicted in Fig. 4, due to the incorporation of AuNPs and CdS the light absorption range of the ternary system, IO-TiO 2 -AuNPs-CdS has widened from UV region to visible region. 29 This would invigorate the photocatalytic activity of ternary system under visible light. 29 Photocatalytic degradation of trypan blue (TB) by the composite materials were rst assessed under visible light. The TB sample was kept in the dark for 30 minutes before irradiating with visible light. The UV-visible absorbance of TB against wavelength and the corresponding degradation against time were presented in Fig. 6. Fig. 6A shows the absorbance of 20 mM TB against wavelength in the presence of IO-TiO 2 -AuNPs-CdS under visible light irradiation. During the 120 min, total irradiation the IO-TiO 2 composite depicted lowest photocatalytic enhancement because of zero visible light response (Fig. 6B). IO-TiO 2 -AuNPs composite depicted no photocatalytic enhancement like the IO-TiO 2 ( Fig. 6B and C). This lack of enhancement is attributed to the larger size of the AuNPs 14 (50 nm, see Fig. S2 †). Next the bare CdS thin lm shows better activity than IO-TiO 2 and IO-TiO 2 -AuNPs due to its intrinsic enhanced visible light response. Finally, the photocatalytic activity of binary IO-TIO 2 -CdS and ternary IO-TiO 2 -AuNPs-CdS are not signicantly different but far superior to the   other composites. Unfortunately, the photocatalytic activity of AuNPs loaded ternary composite IO-TiO 2 -AuNPs-CdS was not signicantly improved to fulll the real-world urge. As the in situ synthesized nanoparticles are $50 nm (Fig. S2 †), 14 they are unable to enhance the photocatalytic activity of the ternary system, TiO 2 -AuNPs-CdS. However, the presence of CdS loading astoundingly improved the visible light driven photocatalysis in binary IO-TiO 2 -CdS and ternary IO-TiO 2 -AuNPs-CdS. 29 CdS was used in combination of TiO 2 due to its narrow band gap (2.4 eV) as this could enlarge the light response range of TiO 2 to visible region. In the presence of the visible light, the photogenerated electrons of CdS move from the CB of CdS to the CB of TiO 2 in a binary system, IO-TiO 2 -CdS (Fig. 7C). On the other hand, in the ternary system, IO-TiO 2 -AuNPs-CdS the mediator AuNPs would help in the process (Fig. 7A). However, the CdS thin lm underwent photocorrosion under the visible light irradiation as S 2À ions get oxidized to elementary sulfur or oxidized species of sulfur by the photogenerated holes 29 as can be visualized by the loss of activity over time in the CdS containing systems and the digital pictures of the slides in Fig. S4. † Thus, these composites IO-TiO 2 -CdS and IO-TiO 2 -AuNPs-CdS were unable to demonstrate recyclability of photocatalytic reaction. 29 As shown in the Fig. 6C the plot of ln(A t /A 0 ) against time are not linear and the degradation reaction do not follow pseudo-rst order kinetics.

Photocatalytic reactions of the composites in UV light
The ternary system IO-TiO 2 -AuNPs-CdS is also known as Zscheme where CdS, IO-TiO 2 and AuNPs are photosensitizer I (PSI), photosensitizer II (PSII), and electron mediator, respectively. 38,52 Therefore, we compared the photocatalytic degradation of TB under UV (l ¼ 365 nm) irradiation as presented in Fig. 6(D-F). Fig. 6D depicts the absorbance of 20 mM TB against wavelength in the presence of IO-TiO 2 -CdS under UV light irradiation. During the 120 min, total irradiation the IO-TiO 2 composite showed the lowest photocatalytic activity. However, this result is much better than IO-TiO 2 under visible light (Fig. 6A) as TiO 2 itself is much more active under UV light. 38 The IO-TiO 2 -AuNPs composite shows almost similar dye degradation within the experimental error. Bare CdS performed very similar to that of IO-TiO 2 and IO-TiO 2 -AuNPs. Among the binary IO-TiO 2 -CdS and ternary IO-TiO 2 -AuNPs-CdS, the former performed much better than the ternary system ( Fig. 6E and F). Both IO-TiO 2 -CdS and IO-TiO 2 -AuNPs-CdS performed considerably better than that under visible light (Fig. 6B). In the presence of the UV light, the photogenerated electrons of TiO 2 move from the CB of TiO 2 to the CB of CdS in a binary system, IO-TiO 2 -CdS (Fig. 7D). On the other hand, in the ternary system, IO-TiO 2 -AuNPs-CdS the mediator AuNPs would help in the process (Fig. 7B). In summary, the binary IO-TiO 2 -CdS is much more active photocatalyst under UV light than in visible light. The kinetics of the photocatalytic degradation of TB under UV light can be evaluated following the Langmuir-Hinshelwood rst-order model shown in eqn (1). 53 Here "k" is rst order rate constant and "t" is the time in min.

ln(A t /A 0 ) ¼ Àkt
(1) The relationship of ln(A t /A 0 ) against time over various photocatalysts are shown in Fig. 6F. The degradation kinetic parameter is shown in Table 1. The R 2 values are indicative of the fact that the degradation process follows Langmuir-Hinshelwood rst-order model. 53 Based on the data tabulated in Table 1 the rate of TB degradation over IO-TiO 2 -CdS is 0.0206 min À1 and is approximately 7.9, 5.4, 5.7 and 1.5 times the rates of IO-TiO 2 (0.0026 min À1 ), IO-TiO 2 -AuNPs (0.0038 min À1 ), CdS (0.0036 min À1 ) and IO-TiO 2 -AuNPs-CdS (0.0140 min À1 ), respectively under UV light.

Mechanism of photocatalytic degradation
The possible photocatalytic degradation mechanism of TB under visible light is illustrated in Fig. 7A. When IO-TiO 2 -AuNPs-CdS composite is illuminated with visible light, an electron (e À ) in the valence band (VB) of CdS would be promoted to the conduction band (CB) generating electron/hole pair. 28,29 Subsequently the electrons will be trapped in the AuNPs and will be further transferred to IO-TiO 2 CB. The electron in IO-TiO 2 CB can react with dissolved oxygen to form active oxygen species (O 2 À c) which can further react with water to generate OHc radicals. 28 The hole (h + ) in CdS VB could also react with OH À to generate OHc radicals (Fig. 7A). The hole, and generated O 2 À c, and OHc radicals are responsible for degradation of TB. 28,54,55 The possible photocatalytic degradation reactions are presented below: TiO 2 + hn / TiO 2 (e À + h + ) (UV light) h + + OH À / OHc h + + TB / degradation product O 2 À c + TB / degradation product OHc + TB / degradation product (9)  To further investigate the effect of incident light we have performed additional photocatalytic experiments in the presence of UV light, and the electron transfer process is illustrated in Fig. 7B. Under UV irradiation the IO-TiO 2 -AuNPs-CdS composite apparently shows better photocatalytic degradation ( Fig. 6E and F) of the TB. In this system, under UV light both IO-TiO 2 and CdS provide electron/hole pair. 13 Under UV light the photogenerated electrons of IO-TiO 2 would rst transfer to AuNPs and then to the valence band of CdS, and then further get excited to the CB of CdS. This creates a typical electron-transfer route of Z-scheme photocatalyst. 13,50,56 As shown in Fig. 7B the reduction would occur at the CB of CdS and oxidation would occur at the VB of IO-TiO 2 generating superoxide (O 2 À c) and hydroxyl radicals (OHc), respectively. The dye reduction may proceed in the VB of IO-TiO 2 ; however, the CB of CdS is highly negative compared to that of IO-TiO 2 , CdS has better reducing power and dye reduction may be enhanced due to the presence of this Z-scheme pathway under the irradiation of the UV light. 13,50,56 In this case effective dye degradation may happen in VB of IO-TiO 2 , CB of CdS and VB of CdS. Hence, the photocatalytic activity of ternary IO-TiO 2 -AuNPs-CdS is superior to that of visible light irradiation (Fig. 7C). It is known in the literature that the photocatalytic performance could be improved by SPR of AuNPs. 57 However, for our ternary composite, IO-TiO 2 -AuNPs-CdS the photocatalysis under visible light is comparable to that of binary, IO-TiO 2 -CdS ( Fig. 6B and C). This indicated that SPR could not enhance the photocatalytic activity of our ternary composite, IO-TiO 2 -AuNPs-CdS 13 as the in situ synthesized nanoparticles are $50 nm (Fig. S2 †). 14 On the contrary, under UV light the binary IO-TiO 2 -CdS is much active than the ternary IO-TiO 2 -AuNPs-CdS ( Fig. 6E and F). Further investigation is needed to evaluate the contribution of the AuNPs' SPR in the photocatalytic behavior of the ternary composite, IO-TiO 2 -AuNPs-CdS. Photocatalytic reactions and formation of reactive oxygen species are shown in eqn (2)-(9). Fig. 7C and D represent the dye degradation mechanism of binary system, IO-TiO 2 -CdS under visible light and UV light, respectively.

Radical trapping experiment
We performed trapping experiments to understand which radical is main oxidative species in degrading the TB. As discussed in the previous section h + , O 2 c À , and cOH could be active species in the degrading the dye. We utilized EDTA, BQ, and t-BuOH as our scavengers for h + , O 2 c À , and cOH, respectively. 55,58-60 A certain amount of these scavenger molecules were added to a representative photocatalytic reaction mixture in the presence of IO-TiO 2 -CdS. Fig. 8 demonstrates the photocatalytic degradation of TB in the presence of EDTA, BQ, and t-BuOH scavengers. As evident from Fig. 8, the addition of EDTA and BQ lead to a signicant slowdown of the photocatalytic degradation of TB under UV light. However, in the presence of t-BuOH, there is no signicant loss of activity. This result urges the fact that the hydroxyl radical is not the primary cause of TB degradation under UV light. The h + and the O 2 c À species play a dominant role in the photocatalytic degradation of TB under UV light.

Binary and ternary synergistic effect
To demonstrate the synergistic effect of incorporating the photosensitizers into binary and ternary systems, percent degradation of the dyes was compared. Percent degradation was dened per eqn (10): Percent degradation for the two unary systems, IO-TiO 2 and CdS, and binary IO-TiO 2 -AuNPs plus IO-TiO 2 -CdS were summed together and plotted in Fig. 9 along with percent degradation for the binary IO-TiO 2 -CdS and ternary IO-TiO 2 -Au-CdS composites. What is notable is the rate of dye degradation for both the binary IO-TiO 2 -CdS and ternary IO-TiO 2 -AuNPs-CdS systems exceed the rate of degradation for their constituent parts summed together. This demonstrates that improved photocatalytic performance due to incorporation of photosensitizers into binary and ternary systems is more than simply a result of both sensitizers working simultaneously but independently. Coupling the photocatalysts together results in a synergistic enhancement of activity which is likely attributed to factors such as improved electron-hole separation, 61 enhanced light harvesting ability, 62-65 increased surface area, 23 and better CdS lm distribution along the inverse opal structure. 66 Additionally, it is interesting to note that although the ternary IO-TiO 2 -AuNPs-CdS system performed worse than or equal to the binary IO-TiO 2 -CdS system, it performed the most consistently across both light sources, attaining 67% (Fig. 9A) and 61% (Fig. 9B) degradation in 120 minutes under UV and visible conditions (92% activity retention). By contrast binary IO-TiO 2 -CdS dropped from 83% (Fig. 9A) to 56% (Fig. 9B) (67% activity retention) and unary CdS from 25% (Fig. 9A) to 12% (Fig. 9B) (48% activity retention). Binary IO-TiO 2 -AuNPs and unary IO-TiO 2 retained 15% (Fig. 9A) and 8% (Fig. 9B) of their UV activity respectively.
Our generalized approach is to fabricate the IO-TiO 2 composites bottom up by the coassembly of a polystyrene (PS) nanosphere scaffolding with a water soluble titania precursor, TiBALDH followed by calcination of the polymer template and with subsequent deposition of the nanoparticles by in situ synthesis and CdS lm by SILAR route. A comprehensive procedure is detailed below.

Synthesis of polystyrene nanospheres
PS nanospheres approximately 270 nm in size were synthesized by surfactant free emulsion polymerization. A 100 mL two necked round bottom ask was placed in a sand bath and fastened with a reux condenser and a thermometer. The joints were wrapped in Teon tape to prevent PS from fusing the condenser and the round bottom together during the reaction.
A rubber septum was placed onto the reux condenser and nitrogen was pumped through a bubbler to create inert atmosphere. Polymerization was carried out by rst dissolving 0.0651 g AIBA, 0.6 g PVP, and 5.518 mL styrene in DI water and diluting to 50 mL. The reaction chamber was sealed under nitrogen and slowly heated to 70-80 C where it was held for 6 hours with stirring. The latex beads were washed by centrifuging at 13 000 rpm for 20 minutes 3-4 times, redispersed in 40 mL DI water, and sonicated for 30 minutes to break up agglomerates.

Fabrication of inverse opal TiO 2
TiO 2 inverse opals were made by evaporating a coassembly mixture of polystyrene and TiBALDH in water onto a vertically standing glass substrate. 41,42 Glass microscope slides (0.83 Â 1.88 cm) were cut, rinsed with isopropanol and soaked in piranha solution for 30 minutes to make them hydrophilic. The clean slides were stored in DI water and, dried under an N 2 stream before use. The coassembly mixture consisted of 1 mL 2.5% wt PS, 160 mL 50% TiBALDH, and was diluted to 4 mL with DI water. One slide was placed in a glass vial (ID $ 2 cm) and was submerged in the coassembly mixture. The vials were le in a 45 C incubator for 1-2 days to evaporate, then were subsequently calcined at 500 C for 3 hours using a temperature ramp  rate of 2 C min À1 in a muffle furnace. Aer heating, the slides were allowed to cool naturally to room temperature. Films were characterized by SEM, EDX, UV-visible, and Raman spectroscopies.

In situ synthesis of AuNPs
Gold nanoparticles were synthesized in situ by the reduction of a gold chloride solution with ascorbic acid. IO-TiO 2 slides were taped to the wall of a vial with Kapton tape and immersed in a mixture of 5.940 mL DI water and 60 mL 25 mM NaAuCl 4 with stirring. Aer soaking for 30 minutes, 180 mL of 100 mM L-ascorbic acid was quickly added while stirring was sustained for another 15 minutes, aer which the nanoparticle solution was covered and allowed to age overnight.

CdS deposition by SILAR method
CdS was deposited on plain glass slide or IO-TiO 2 or IO-TiO 2 -AuNPs composites with slight modication of the literature method. 43,44 50 mM solutions of Cd(CH 3 COO) 2 $2H 2 O and Na 2 S$9H 2 O were prepared in ethanol and 25% : 75% water-tomethanol, respectively. The CdS deposition proceeded as followed. First a slide was soaked in the Cd 2+ solution for 30 seconds before being moved to a beaker containing clean methanol for another 30 seconds. The slide was dried under an N 2 stream and then soaked in the S 2À solution for 30 seconds. The slide was rinsed again in another beaker of methanol then dried under N 2 , thereby completing one cycle. SILAR cycles were performed 10 times on clean slides for CdS thin lms and on slides containing IO-TiO 2 and IO-TiO 2 -AuNPs.

Photocatalytic tests
Photocatalytic reactions were performed in an acrylic cuvette. Slides were taped to the side of the cuvette with Kapton tape. 3 mL of 20 mM TB was transferred to the cuvette which was then sealed with paralm. Cuvettes were le in the dark for 30 minutes to reach adsorption equilibrium before being placed 5 cm away from the visible light source (17 watt white light LED bulb, 1600 lumens, color temperature, 5000 K), in a custom made cushioned sample holder attached to a vortex mixer for solution agitation (Fig. S1 †). For UV reactions, a low-pressure mercury UV bench lamp (15 watt, peak wavelength 365 nm) with a 400 nm cutoff lter was used. TB decolorization was monitored by taking a UV-visible spectroscopic measurement every 10 minutes for at least 1.5 hours before stopping the reaction.

Photocatalytic mechanism studies
Mechanistic studies were carried out for the representative binary IO-TiO 2 -CdS system in 3 mL 20 mM TB by adding 1 mM EDTA, or BQ, or t-BuOH to act as h + , or O 2 À c, or OHc scavengers, respectively. Reactions were performed under a UV lamp using a setup identical to the above photocatalytic reaction experiments.

UV-visible spectroscopic measurements
The absorption spectrum was recorded using a Cary 4000 UVvisible spectrophotometer.

Raman spectroscopic measurement
Raman spectra were obtained with a portable BWS415-785S i-Raman System produced by BWTEK, equipped with a 785 nm diode laser and BAC-151B video microscope. The soware used was BWSpec. The measurements were performed focusing the sample by a 20Â objective lens with 8.8 mm working distance (WD). The resolution of Raman shi was <4.5 cm À1 . The power of the laser used was 20-60% of the maximum value that was around 320 mW. The integration time of the measurements were 150-5000 ms.

Electron microscopy and EDX analysis
The material was subsampled and secured to labeled SEM stubs. One piece of 5 mm Â 5 mm glass sample was secured to a labeled upper stage. All samples were sputter coated with 15 mm chromium using a Denton DV602 magnetron sputter coater. The samples were imaged using Topcon DS150 Field Emission Scanning Electron Microscope (FE-SEM) at 10 kV in secondary electron mode. EDX data was collected from a JEOL JSM5800LV SEM EDX at an accelerating voltage of 10 keV. Selected area electron diffraction (SAED) pattern was collected using Hitachi H-7600 transmission electron microscope at an accelerating voltage of 120 kV. The sample was prepared by spreading a colloidal solution on an ultra-thin 300 mesh copper grid coated with Formvar/carbon and subsequently dried in the air.

Conclusions
In conclusion, we have successfully fabricated binary and ternary 3D macroporous composite thin lms namely, IO-TiO 2 -AuNPs, IO-TiO 2 -CdS, and IO-TiO 2 -AuNPs-CdS. The 3D macroporous structure enhanced the dye degradation by augmenting the light-harvesting capabilities. Incorporation of CdS and AuNPs improved the UV light responsive weakness of TiO 2 and facilitated the photogenerated electron-hole separation. The introduction of AuNPs between TiO 2 and CdS facilitated swi electron transfer between the two and created more active sites in presence of UV light creating a Z-scheme route. Therefore, the ternary composite IO-TiO 2 -AuNPs-CdS performed better under UV light irradiation than the visible light irradiation. Similarly, the binary IO-TiO 2 -CdS performed better under UV light than the visible light. In fact, IO-TiO 2 -CdS under UV light performed best among all the systems and reaction went to completion. Under UV light the composite materials have shown rst order kinetics for dye degradation. The photocatalytic degradation of TB under UV light is primarily due to the generation of h + and the O 2 c À radical. Under visible light photogenerated electrons of CdS transferred to the CB of IO-TiO 2 with the help of AuNPs. Under UV light the photogenerated electrons of IO-TiO 2 are moved to the VB of CdS via AuNPs and then recombine with the holes. As we did not observe signicant augmentation of photocatalytic activity due to SPR contribution of AuNPs and observed the photo-corrosion of CdS, further investigation is anticipated with the scope of improved photocatalytic activity.

Conflicts of interest
There are no conicts to declare.