Introduction

Hierarchically structured assemblies of uniform spherical polymer particles have attracted considerable attention due to their variety of applications that range from photonic bandgap crystals [1,2,3] to masks in lithography [4,5,6,7] as well as templates for the preparation of highly ordered porous organic and inorganic materials [8,9,10]. However, the building blocks of these assemblies are not limited to spherical particles, for instance, non-spherical particles [11, 12], core-shell and hollow spheres [13, 14], Janus-like particles [15, 16], and stimuli-responsive particles [17, 18] were successfully used as well. Assembling the building blocks by various techniques, yields 2D films and 3D-ordered structures. For more details, we refer the interested reader to some recent reviews [19,20,21].

Among the porous materials synthesized by using a well-structured template are oxide inverse opals with sensing, photonic or semiconducting properties [22,23,24]. Oxide inverse opals are prepared either by co-assembly of polymer and inorganic particles or by infiltration of the polymer colloidal crystal templates with oxide precursor solutions, which are subsequently mineralized. These organic/inorganic hybrids are then calcinated or the polymer particles are removed with an appropriate organic solvent and the corresponding porous inverse replica is formed. Recently, Strey and Müller have introduced the so-called nanofoams by continuity inversion of dispersion (NF-CID) principle where colloidal crystal-like structures of thermoplastic polymer particles are transferred into a porous polymer using a supercritical (sc-) blowing agent, e.g., CO2 [25, 26]. In contrast to an approach where thin films of nanofoam are obtained from foaming thin polymer films after several hours of saturation with sc-CO2 [27, 28], the saturation time is considerably reduced to seconds due to the enormous surface area of the colloidal crystal-like structures made of nanoparticles [29]. As the polymer nanoparticles are saturated by the sc-blowing agent, their glass transition temperature Tg is reduced [30, 31]. A temperature increase above the reduced glass transition temperature Tg* initiates an inversion of the particles towards a viscous polymer matrix. The voids between the polymer nanoparticles transform into a high number density of spherical sc-blowing agent-filled nanodroplets in the viscous polymer matrix. The subsequent foaming is initiated by a pressure release above the critical temperature of the sc-fluid which induces the gradual transition of each nanodroplet into a foam bubble. Simultaneously, the polymer matrix is fixed due to the diffusion of sc-fluid molecules out of the matrix and the related increase of Tg*. Finally, a nanoporous polymer is obtained which can be used in heat insulation [32, 33], gas storage [34], separation [35], and catalysis [36]. Using the porous polymer as a template itself, Qawasmi et al. [37] have mineralized porous polystyrene (PS), previously prepared by the NF-CID method, at mild conditions via chemical bath deposition (CBD) with a ZnO precursor solution. A metal oxide layer on the pore wall was formed, while the porous structure was preserved. The obtained porous organic/inorganic (PS/ZnO) hybrid material showed higher mechanical stability than the original porous PS, making them more applicable in different fields like for instance as solid support in heterogeneous catalysis.

According to the template strategy, the structure of the porous materials should be closely related to the template structure. Thus, using colloidal crystal-like structures as templates the pore size and morphology are expected to be closely related to the size and polydispersity of the polymer particles as well as their packing in the close-packed assembly. Synthesizing polymer particles by emulsion polymerization allows tuning the particle properties by the variation of the reaction conditions, such as the temperature [38], the initiator [39], or the surfactant concentration [40]. Thereby, the latter parameter might have the largest influence on the particle size. The strong decrease of the particle size generally found with surfactant concentration is usually attributed to an enhanced stabilization of newly formed primary polymer particles by surfactant molecules which slows down the particle growth by coagulation [41, 42]. This trend is known to change when micelles are formed exceeding the critical micelle concentration (CMC) and attributed to the appearance of micellar nucleation processes [43,44,45]. The predominant particle formation mechanism switches from a homogeneous nucleation mechanism [46,47,48] at surfactant concentrations below the CMC towards a mixed mode of particle nucleation, i.e., homogeneous vs. micellar, above the CMC [49]. While most of the studies relate this change in nucleation mechanism to the CMC of the respective binary water–surfactant-systems, Farías-Cepeda et al. [50] found indications that instead the CMC of the polymerizable system determines the concentration where the mixed mode of particle nucleation occurs. It is interesting to note that the size of microgel particles is constant above the CMC, but is linearly dependent on the surfactant concentration below the CMC [51]. However, the polydispersity does not seem to depend on the addition of surfactant.

Although the CMC of many binary water-surfactant mixtures, like water–sodium dodecyl sulfate (SDS) [52] are well-known, there are only a few data for systems of the type water–styrene–SDS used in emulsion polymerization. Harada et al. [53] (1.7 mM at 50 °C) and Hansen and Ugelstad [54] (5.3 mM at 60 °C) have shown that the presence of styrene and salts reduces the CMC of the corresponding water–SDS system (9.4 mM and 10.8 mM, respectively [52]) using the Du Noüy ring method. In contrast to them, Chang et al. [55] reported an increase of the water–styrene–SDS CMC at 25 °C as determined by the pendant drop technique (6.7 mM) as well as conductivity measurements (7.5 mM) compared to water-SDS (3.0 mM [56]). Farías-Cepeda et al. [50] reported at 70 °C a CMC of 5.3 mM replacing styrene with ethylbenzene, also using the Du Noüy ring method. Furthermore, their results indicate that the polydispersity of the final polymer particles becomes significantly larger at the CMC of the ternary emulsion system. Using monomer-starved conditions [57] the polydispersity of the final dispersion was shown to be less pronounced. In contrast to classical emulsion polymerization, where all the monomer is placed in the reactor, monomer-starved semibatch emulsion polymerization is typically characterized by a continuous addition of the monomer to an existing dispersion of well-defined seed [58] particles or monomer [59, 60]. Note that this method also allows the synthesis of core-shell particles [61, 62].

The overall goal of this work was to use close-packed assemblies of polymer nanoparticles as templates for the preparation of ZnO inverse opals and mesoporous polystyrene refining the NF-CID principle [25, 26]. Accordingly, the first part of this paper deals with the synthesis of polystyrene particles with adjustable size and polydispersity by emulsion polymerization. The structure of the PS particles synthesized at different SDS concentrations was characterized quantitatively by means of dynamic light scattering (DLS) and small-angle neutron scattering (SANS). In order to prove that the particle properties are related rather to the micellization in the ternary system water–styrene–SDS than to the micellization in the binary system water–SDS, we determined the CMC and its temperature dependence with the spinning drop method. The close-packed assemblies of polymer nanoparticles obtained by drying were studied by small-angle X-ray scattering (SAXS) as well as scanning electron microscopy (SEM). In the second part, the close-packed particle assemblies were foamed to obtain porous polymers. The modification of the NF-CID principle [25, 26] resulted in the preparation of a highly porous material consisting of micrometer-sized spherical pores surrounded by extended open-cellular regions of mesopores. In another approach, the voids of close-packed particle assemblies were mineralized with ZnO via the chemical bath deposition (CBD) method [63] to uniformly cover the PS-particles with ZnO-nanoparticles and prepare a ZnO inverse opal via calcination of the PS/ZnO hybrid structure.

Experimental

Nanoparticle synthesis

The polystyrene nanoparticles were synthesized via emulsion polymerization under nitrogen atmosphere. Double-distilled, degassed water (180 mL), and the respective amount of sodium dodecyl sulfate (purity > 99%, Sigma-Aldrich) were placed in a three-necked round bottom flask, equipped with a reflux condenser, a magnetic stirrer, and a gas inlet. After the mixture was heated to 80 °C, while constantly stirred at 750 rpm, a solution of styrene (21 mL, 0.18 mol, > 99%, Sigma-Aldrich) and the chain transfer agent 2-ethyl hexyl thioglycolate (0.5 mol% based on styrene, > 95%, Sigma-Aldrich) were added to the aqueous surfactant mixture and allowed to equilibrate for 10 min. Subsequently, potassium peroxydisulfate (0.13 g, 0.047 mmol, > 99%, Sigma-Aldrich,) dissolved in double-distilled, degassed water (10 mL) was added to initiate the polymerization. Temperature and stirring speed were kept constant for additional 4.5 h. Finally, the dispersion was filtered and dried in a crystallizing dish which was placed on a shaker plate at 40 rpm (Model 3500 Advanced Shaker, VWR) at ambient temperature and pressure.

Interfacial tension measurements

The interfacial tension between aqueous SDS solutions (exhibiting different [SDS]) and styrene was measured at 25 °C, 30 °C, 45 °C, and 60 °C using the spinning drop tensiometer SVT 15 from DataPhysics (Filderstadt, Germany). A droplet of styrene was introduced in the capillary filled with the respective aqueous SDS solution. After that, a rotation speed of 10,000 rpm was set and the formed droplets were analyzed with the Laplace-Young Fit [64] using the densities of styrene determined with the density meter DMA 5000 M from Anton Paar (Graz, Austria), while the density of water is used for aqueous SDS solutions.

Foaming

The close-packed PS nanoparticles (obtained via drying) were foamed with supercritical CO2 using a home-built high-pressure sapphire cell [65]. The central part of the cell is a sapphire cylinder (h = 50 mm, ØInside = 10 mm, ØOutside = 32 mm) with a sample volume of about 3 mL. At the top, a piston seals the pressure cell and allows adjusting the sample volume and pressure. The pressure is measured by a miniature pressure transducer (Type 8530, Burster, Germany), placed in a casing at the bottom of the cell. By transferring the pressure cell into a thermostated water bath, where the temperature can be adjusted between 5 °C and 80 °C with an accuracy of ΔT = ± 0.1 K.

For foaming, a piece of the close-packed PS nanoparticles assemblies (approx. 0.5 cm × 0.5 cm × 0.5 cm (W × H × D)) was put on a sample holder in the high-pressure cell. After filling the cell with liquid CO2 at room temperature and 72 bar using a home-built filling apparatus consisting of a membrane accumulator, the cell was transferred to a thermostated water bath, setting the temperature to T = 55 °C and the pressure to p = 250 bar. Unless otherwise stated, the pressure was released after an exposure time of 15 min by opening the valve rapidly.

Preparation of ZnO inverse opals

ZnO inverse opals

The ZnO deposition was conducted according to a procedure described in detail elsewhere [37]. Briefly, stock methanol solutions of Zn(OOCCH3)2•2 H2O (ZnAc2) (34 mM, Sigma-Aldrich), tetraethylammonium hydroxide (TEAOH) (75 mM, Aldrich Chemistry), and polyvinylpyrrolidone (PVP) (21.7 mM, Sigma-Aldrich, Mw = 10,000, Lot # BCBJ4889V) were used to prepare the final precursor solution with a volume ratio 1:1:1 (ZnAc2:TEAOH:PVP). Close-packed monodisperse PS particles with a radius of R = 113 nm and a polydispersity of p = 0.02 were subjected to mineralization in vessels with aliquots of the precursor solution containing 2 vol.% H2O at 60 °C for 1.5 h (1 deposition cycle). Subsequently, the substrates were thoroughly rinsed with methanol, dried under inert gas, and the next deposition cycle was executed. After 5 deposition cycles, the PS/ZnO hybrid structures were calcinated at 500 °C for 3 h.

Characterization

Dynamic light scattering

The hydrodynamic radius of the polymer particles was determined with the 3D LS Spectrometer from LS Instruments (Fribourg, Switzerland) equipped with a high-performance DPL laser from Cobolt (λ = 561 nm). Particle dispersions of ~ 10 wt% were diluted with double-distilled water to ~ 0.1 wt% and studied by varying the scattering angle between 30° and 130° in steps of 20° at a temperature of 25 °C. The received time-intensity correlation functions were analyzed using CONTIN [66].

Small-angle neutron scattering

Neutron scattering experiments were performed at the D11 spectrometer at the Institute Laue-Langevin (ILL) in Grenoble (France) and at the KWS-1 spectrometer at the Heinz-Maier-Leibnitz Zentrum (MLZ) in Munich (Germany). At D11, the neutron wavelength was set to λ = 5.5 Å with a wavelength spread of Δλ/ λ = 9% (FWHM). The detector/collimation distances of 39/40.5, 8/8, and 1.5/20.5 m yielded a q-range from 0.0015 to 0.4696 Å−1, where q = 4π sin(θ/2)/λ is the absolute value of the scattering vector. For KWS-1, neutron wavelengths of λ = 5.0 Å and 10 Å with a wavelength spread of Δλ/ λ = 10% (FHWM) were used. Adjusting detector/collimation distances 20/20 m, 8/20 m, and 1.5/8 m a q-range from 0.0013 to 0.5306 Å−1 was accessible.

Aqueous dispersions of polystyrene particles (~ 10 wt%) was diluted to ~ 0.1 wt% using D2O (> 99%, Eurisotop) and filled into Hellma quartz QS glass cells with an optical path length of 1 mm. The cells were then placed in a home-built cell holder recording the scattering data at 25 °C using 3He multiwire proportional chamber detectors at both facilities. For the raw data treatment, the software LAMP [67] and qtiSAS provided by the ILL and JCNS respectively were used, including the subtraction of dark current and the empty cell scattering, masking, and radial averaging, as well as the consideration of the sample transmission and the detector dead time. In order to normalize the data to absolute scale, the incoherent scattering of the second calibration standards H2O (ILL) and Perspex (MLZ) with optical path lengths of 1 mm and 1.5 mm were used, respectively. The analysis of the scattering data was performed using SasView (version 4.2.2).

Small-angle X-ray scattering

The dried, close-packed PS nanoparticles were analyzed by SAXS using a XEUSS SAXS/WAXS system from Xenocs (Grenoble, France). The instrument is equipped with a CuKα source (λ = 1.541 Å, GeniX ultra-low divergence, Xenocs) and a Pilatus 300 K hybrid pixel detector (Dectris). A fine powder of the dried particles was captured between two Kapton® stripes of 1 mm thickness in a home-built cell holder. The measurements were performed at room temperature and a sample-to-detector distance of 2.7 m, which allowed to investigate a q-range of 0.0043–0.1300 Å−1. The raw data treatment was performed using the evaluation software Foxtrot [68] assuming close-packed particle assemblies, the measurement time, the transmission, and the background scattering. Finally, the data was normalized using glassy carbon type 2 [69] as standard. The analysis of the scattering data was performed using Sasfit (version 0.94.11).

Scanning electron microscopy

SEM analysis of the polymer particles and the porous polymers was performed using the Gemini SEM 500 from Carl Zeiss Microscopy (Jena, Germany) at 3 kV. Prior to the analysis of the porous polymers, the samples were freeze-fractured with liquid nitrogen to allow the investigation of freshly broken sharp edges. The samples were placed on a sample holder using silver lacquers (G3692, Plano GmbH, Wetzlar, Germany) and sputtered with a thin 10 nm layer of iridium. ZnO inverse opals were sputtered with 6 nm iridium and imaged at 1.7 kV.

SEM images were analyzed with respect to the particle size and polydispersity using the software ImageJ evaluating at least 150 particles or pores. By describing the size distribution with a Gaussian function, the mean radius RSEM and the standard deviation σ were received.

Results and discussion

In this work, we show that the expertise in synthesizing polystyrene (PS) nanoparticles of adjustable properties can be used to prepare highly porous materials. Accordingly, the first part deals with the correlation between the surfactant concentration applied in the emulsion polymerization and the size and polydispersity of the obtained polystyrene nanoparticles. Studying the interfacial tension between water/sodium dodecyl sulfate and styrene allowed us to link the increase in particle polydispersity to competing nucleation and growth mechanisms occurring at concentrations above the critical micelle concentration (CMC) of the ternary system. Drying resulted in close-packed PS nanoparticles assemblies, characterized by small-angle X-ray scattering (SAXS) and scanning electron microscopy (SEM). In the second part of this work, these dried assemblies of PS nanoparticles are then used for the preparation of porous polymers and ZnO inverse opals. While the former were obtained using the nanofoams by continuity inversion of dispersion (NF-CID) procedure [12, 13] and its further optimization, the latter were obtained via the chemical bath deposition (CBD) [63] method.

Synthesis of PS particles of adjustable size and polydispersity

The polystyrene nanoparticles used later on to prepare porous polymers and ZnO inverse opals were synthesized by emulsion polymerization at 80 °C using potassium peroxydisulfate as initiator and sodium dodecyl sulfate (SDS) as surfactant. To study the role of the surfactant concentration on the particle size and size distribution, the particle synthesis was performed at various SDS concentrations between 0 mM and 26.2 mM, while the other process parameters were kept constant. Subsequently, the obtained particle dispersions were characterized by studying diluted samples with dynamic light scattering (DLS) and small-angle neutron scattering (SANS). Furthermore, scanning electron microscopy (SEM) was used to image the close-packed assemblies of the PS nanoparticles obtained via drying.

SANS curves of polystyrene nanoparticle dispersions synthesized at [SDS] = 6.5 mM, 7.5 mM, 8.0 mM, 8.5 mM, 9.0 mM, and 11.0 mM were recorded at T = 25 °C. In order to increase the contrast while diminishing particle-particle interactions, the aqueous dispersions (~ 10 wt%) were diluted to ~ 0.1 wt% via the addition of D2O. The obtained coherent SANS intensities I(q) were plotted as a function of the scattering vector q in Fig. 1 using a double logarithmic representation. As can be seen, the curves show the typical features expected for the scattering of slightly polydisperse spherical objects in the limit of low number density n. At low q, a relatively high but almost constant intensity is observed. With increasing q, the intensity starts to decrease steeply until the first minimum is observed at intermediate q-values. The position of this minimum is related to the radius of the polystyrene particles, while the sharpness of the minimum and the following maximum as well as the existence of further minima and maxima is related to the polydispersity of the particle radius. At high q, the scattering is characterized by a q−4-dependent decay of the intensity, typical for bulk contrast.

Fig. 1
figure 1

SANS curves of PS particle dispersions (~ 0.1 wt%, obtained via dilution of the aqueous dispersions (~10 wt%) with D2O), synthesized at various SDS concentrations, recorded at T = 25 °C. The scattering profiles were quantitatively described using the form factor of polydisperse spheres [70] (solid curve). Note that the incoherent scattering contribution has been subtracted and that the curves are displaced by a factor of 10x with respect to each other

Comparing the curves, a shift of the characteristic minima/maxima towards higher q values is observed when the SDS concentration used to synthesize the particles is increased. This shift, according to q ~ 2 π/d, corresponds to a decrease of the size of the PS particles. Furthermore, the systematic blurring out of higher-order minima can be attributed to an increase in polydispersity.

In order to analyze the scattering curves quantitatively, the scattering intensity I(q)

$$ I(q)=n\Delta {\rho}^2{V}^2P(q)S(q)+\mathrm{incoherent}\ \mathrm{background} $$
(1)

can be modeled using the decoupling approximation [71].

Here, the scattering intensity can be separated into inter- and intra-particle scattering contributions using the structure factor S(q) and form factor P(q), respectively. n and V are the number density and volume of the particles, and Δρ2 is the (squared) difference of the scattering length densities between the particles and the solvent.

Studying very dilute particle dispersions (~ 0.1 wt%), we neglected structure factor contributions and used the form factor of spheres (Eq. 2) [70] convoluted with a Gaussian distribution function to analyze the scattering curves, where R0 corresponds to the particle radius and σ to its standard deviation. Furthermore, the neutron wavelength spread Δλ/λ was considered. As can be seen in Fig. 1, the experimental scattering data can be quantitatively described using the form factor of polydisperse spheres. From the fits, the particle size and polydispersity pSANS = σ/R0 were determined, which are compiled in Table 1 with the results obtained from DLS and SEM.

$$ {\displaystyle \begin{array}{l}P\left(q,r\right)=\frac{1}{2}\left(1-\cos 2q{R}_0{e}^{-2{\sigma}^2{q}^2}\right)-q\left({R}_0\sin 2q{R}_0+2q{\sigma}^2\cos 2q{R}_0{e}^{-2{\sigma}^2{q}^2}\right)\\ {}+\frac{1}{2}{q}^2\left(-4q{R}_0{\sigma}^2\sin 2q{R}_0{e}^{-2{\sigma}^2{q}^2}+{R}_0^2+{\sigma}^2+{R}_0^2\cos 2q{R}_0{e}^{-2{\sigma}^2{q}^2}+{\sigma}^2\cos 2q{R}_0\left(1-4{\sigma}^2{q}^2\right){e}^{-2{\sigma}^2{q}^2}\right)\end{array}} $$
(2)
Table 1 Dependency of the particle radius R and polydispersity p = σ/R of polystyrene nanoparticles on the surfactant concentration determined by DLS, SANS and SEM. We estimate the relative uncertainties of ΔpSANS and ΔpSEM to be 10%

All synthesized particles were by default characterized by DLS measurements, which were performed with diluted particle dispersions (~ 0.1 wt%), varying the scattering angle θ between 30° and 130° in steps of 20° at a temperature of T = 25 °C. The received intensity-time correlation functions were analyzed using CONTIN [66], yielding the hydrodynamic radius Rh and the polydispersity. However, already Provencher realized that for the correct solution of the inversion problem, additional constraints on the solution are needed, which usually rely on prior knowledge about the size distribution itself. Thus, in Table 1, only the hydrodynamic radius < Rh > is given, obtained by averaging over the values obtained for the different θ. Additionally, the radius RSEM of the PS particles and its polydispersity pSEM = σ/RSEM were determined via the analysis of the SEM images of the close-packed PS nanoparticle assemblies with ImageJ.

In Fig. 2, left, the values of the particle radius determined by the three methods are plotted as a function of the SDS concentration used in the emulsion polymerization. As expected, at first, the radius decreases strongly with increasing surfactant concentration. This well-known decay can be attributed to a substantial decrease of the water/styrene-interfacial tension which leads to an enhanced stabilization of newly formed primary particles by surfactant molecules. As a result, the growth by coagulation and coalescence of the primary particles is slowed down. Increasing the SDS concentration further, the decrease of the radius weakens considerably, approaching a constant value of the order of 20 nm at large values of [SDS]. Comparing the values of the particle radius obtained by the different methods, a quantitative agreement is found for SANS and SEM. As expected, the hydrodynamic radii determined by DLS provide somewhat larger values as particles including their hydration shell are detected.

Fig. 2
figure 2

Left. Particle radius R of polystyrene particles synthesized by emulsion polymerization at various SDS concentrations determined by DLS, SANS, and SEM. As the SDS concentration increases, the radius of the particles decreases and approaches an almost constant value above the CMC of the ternary waterstyreneSDS at T = 80 °C (dashed red line). Right. Polydispersity pSANS and pSEM of the particles obtained from SANS and SEM images, respectively. Closely to the CMC, the polydispersity starts to increase due to competing nucleation and growth mechanisms

On the right side of Fig. 2, the variation of the polydispersity p with increasing SDS concentration is shown. The polydispersity increases in form of an S-shaped profile from an initially constant value of p ≈ 0.03 to a plateau value of p ≈ 0.14 at high values of [SDS]. The point of inflection is located at [SDS] ≈ 8.5 mM, i.e., at the concentration where the decrease of the particle radius was found to level off. This increase of polydispersity p with increasing surfactant concentration can be mainly attributed to the appearance of secondary nucleation processes [72]. While at surfactant concentrations below the CMC mainly homogeneous nucleation takes place, above the CMC, a mixed-mode of homogeneous and micellar nucleation mechanism is present, with the latter being predominant. Interestingly, this micellar nucleation mechanism occurred at a considerably lower concentration than expected from the CMC of the binary water-SDS system. Ten years ago, Farías-Cepeda et al. [50] found indications that this mixed mode appears at the critical micelle concentration of the respective polymerizable emulsion systems instead of the corresponding water–surfactant system. Measuring the interfacial tension between water and ethylbenzene in the presence of K2SO4 as a function of the SDS concentration at the polymerization temperature of 70 °C, they could correlate the polydispersity increase of the synthesized styrene particles with the beginning of micellization, which was found at a considerable lower concentration compared to the CMC of the binary water–SDS-mixture. Note that they used ethylbenzene as a non-polymerizable substituent for styrene while K2SO4 was added to mimic the initiator potassium peroxodisulfate and to avoid a polymerization during the interfacial tension measurements at 70 °C.

In order to prove that indeed the shape of both the R([SDS])-curve as well as p([SDS])-curve is correlated with the micellization, we determined the CMC of the emulsion polymerization system water–styrene–SDS. Due to the low initiator concentration (~ 0.004 mM) compared to Farías-Cepeda et al. [50] (~ 10 mM), the influence of the salt was neglected. The interfacial tension between aqueous SDS solutions and styrene was measured as a function of the SDS concentration at 25 °C, 30 °C, 45 °C, and 60 °C using the spinning drop technique. The recorded interfacial tension profiles were analyzed quantitatively with the Langmuir-Szyszkowski [73, 74] model, shown in the Supplementary Information Fig. S1. The obtained values of the CMC and the interfacial tensions γCMC, the surface excess ΓCMC at the CMC, and the surfactant head group area aCMC at the respective CMCs are summarized in Table S1.

In Fig. 3, the temperature dependence of the CMC in the water–styrene–SDS system is shown by plotting ln(CMC) as a function of temperature. The comparison with the temperature dependence of the CMC in the binary water–SDS system [52] clearly shows that the presence of a styrene reduces the CMC due to the stronger tendency of the SDS molecules to adsorb at the water/styrene than at the water–air interface. However, the trend of the CMC with temperature is similar in both the binary and the ternary system. In order to determine the CMC at the polymerization temperature of 80 °C (which was experimentally not accessible), we used a second-degree polynomial to describe the temperature dependence of the CMC [75]. According to that, we obtained a CMC = 8.0 ± 0.5 mM for the ternary water–styrene–SDS system at T = 80 °C, whereas the CMC for the binary water–SDS system is specified with 13.1 mM [52].

In Fig. 2, the determined CMC of water–styrene–SDS is represented as a dashed red line. As one can see, it coincides almost quantitatively with the concentration at which the radius of the polystyrene nanoparticles approaches a constant value and with the inflection point of the polydispersity profile. Thus, these results confirm that the CMC of the ternary system determines where additional micellar nucleation mechanisms contribute to the particle formation and thus lead to a considerable increase of the polydispersity of the synthesized nanoparticles.

Fig. 3
figure 3

ln (CMC) as a function of the temperature for the ternary water–styrene–SDS system and the binary water-SDS system [52] for comparison. Note that the presence of styrene considerably reduces the CMC of the binary water–SDS system

Drying of the PS nanoparticle dispersions leads to the formation of close-packed PS nanoparticle assemblies, which are later on used for the preparation of porous polymers and ZnO inverse opals. The ordering of the close-packed assemblies of the PS particles was studied by SEM and SAXS. The recorded SEM images are shown in Fig. 4 together with the particle size distributions (insets). They clearly indicate that the polydispersity of the PS nanoparticles has a high impact on the assembly of the particles. Taking a closer look at assemblies of particles synthesized at [SDS] ≤ 8.5 mM, a hexagonal layer arrangement is found. Studying these close-packed assemblies at different magnifications, different types of packing defects such as vacancies, stacking faults as well as cracks were found (see Fig. S2). Drying of somewhat more polydisperse particles synthesized at [SDS] > 8.5 mM, leads to particle assembly without hexagonal layer ordering. However, these less ordered assemblies are more closely packed which results in a considerable increase in packing efficiency due to the filling of some of the voids with the appropriate particles.

Fig. 4
figure 4

Top view SEM images of close-packed PS nanoparticles as well as particle size distribution (inset), synthesized at various [SDS] and at T = 80 °C. Increasing [SDS] to > 8.5 mM the ordering of the particle assemblies decreases considerably due to an increase of the particle polydispersity. At the same time, the size of the PS nanoparticles is decreasing

To quantify the loss of the packing order, the structure of the close-packed assemblies of PS nanoparticles synthesized at [SDS] = 6.5 mM, 7.5 mM, 8.0 mM, 8.5 mM, 9.0 mM, and 11.0 mM was investigated by SAXS experiments at T = 25 °C. The scattering curves are shown in Fig. 5 in a double logarithmic representation of the coherent scattering intensity and the scattering vector q. For each curve, a slight increase of the scattering intensity towards low q is observed which can be attributed to the scattering of larger defects as well as the micrometer-sized granular structure of the sample. With increasing q, a pronounced first interaction peak occurs, with qmax = 2π/d being related to the nearest neighbor distance. Towards larger q, further maxima and minima of the scattering intensity are detected. Thereby, the scattering intensity decays with q−4. Comparing the scattering curves of the close-packed assemblies of PS nanoparticles, it is obvious that the positions of the maxima/minima shift to larger q values with increasing concentration of SDS used in the synthesis. This trend proves that the distance between the particles decreases when the particle size is decreased, as expected. Furthermore, the systematic blurring out of higher-order maxima and minima can be attributed to an increase in polydispersity of particle distances which are a consequence of the increasing particle polydispersity.

Fig. 5
figure 5

SAXS curves of close-packed PS particles obtained via drying of aqueous dispersions, synthesized at different SDS concentrations. The loss in the packing order correlates to the increase in particle polydispersity at the CMC = 8.0 ± 0.5 mM of water–styrene–SDS. The scattering data could be almost quantitatively described using the local monodisperse approximation [76] including the form factor of polydisperse spheres and the structure factor of sticky hard spheres [57,58,59] (solid lines). Note that the incoherent scattering contribution has been subtracted and that the curves are displaced by a factor of 10x with respect to each other. The inset represents the determined particle volume fraction which increases with increasing [SDS] with an estimated error to be ΔΦ = ± 0.02

In comparison to the scattering profiles of dilute particle dispersions shown in Fig. 1, additional scattering contributions arise from interparticle interactions, which means that the structure factor S(q) must be taken into account to model the scattering curves of the close-packed assemblies of PS nanoparticles. Herein, we used the local monodisperse approximation [76] (Eq. 4) instead of the decoupling approximation to combine the form factor with the structure factor, since it has been shown that it provides a more reasonable description of interference effects, especially in systems consisting of particles with high polydispersities at high volume fraction

$$ I(q)=n\Delta {\rho}^2\int N(r)V{(r)}^2F{\left(q,r\right)}^2S\left(q,{R}_i(r)\right) dr $$
(4)

Here, N(r) is the particle size distribution function, V(r) the volume of a particle with the radius r, and F(q,r) is the scattering amplitude of spheres. The structure factor S(q,Ri(r)) accounts for the interaction of particles of the same size using the model of sticky hard spheres [77,78,79]

$$ S(x)=\frac{1}{A{(x)}^2+B{(x)}^2} $$
(5)

in which the parameters A(x) and B (x) are given by

$$ A(x)=1+12\cdotp \eta \cdotp \left[\alpha \frac{\mathit{\sin}x-x\cdotp \mathit{\cos}x}{x^3}+\beta \frac{1-\mathit{\cos}x}{x^2}-\frac{\overset{\sim }{\lambda }}{12}\cdotp \frac{\mathit{\sin}x}{x}\right] $$
(6)

and

$$ B(x)=12\cdot \eta \cdot \left[\alpha \frac{\frac{x^2}{2}- xsinx+1-\cos x}{x^3}+\beta \frac{x-\sin x}{x^2}-\frac{\overset{\sim }{\lambda }}{12}\cdot \frac{1-\cos x}{x}\right], $$
(7)

where x = q ∙ (2R0 + Δ) is proportional to the interaction diameter given by the particle radius R0 obtained from the analysis of the SANS measurements (see Table 1) and the thickness Δ of the attractive square well potential of depth −εS. Thus, the stickiness parameter τ can be calculated by.

$$ \frac{1}{\tau }=\frac{12\cdotp \Delta}{\left(2{R}_0+\Delta \right)}\cdotp {e}^{\frac{\varepsilon_S}{k_BT}} $$
(8)

The parameter η is related to the volume fraction ϕ by

$$ \eta =\upphi {\left(\frac{2{R}_0+\Delta}{2{R}_0}\right)}^3 $$
(9)

as well as

$$ \mu =\overset{\sim }{\lambda}\eta \left(1-\eta \right),\alpha =\frac{1+2\eta -\mu }{{\left(1-\eta \right)}^2},\beta =\frac{-3\eta +\mu }{2{\left(1-\eta \right)}^2} $$
(10)

where \( \overset{\sim }{\lambda } \) is defined by

$$ \overset{\sim }{\lambda }=\operatorname{Min}\left\{6\left[\frac{\tau }{\eta }+\frac{1}{1-\eta}\right]\pm 6\cdotp \sqrt{\frac{\tau }{\eta }+\frac{1}{1-\eta }}\right\}. $$
(11)

As can be seen in Fig. 5, the local monodisperse approximation allows to describe the scattering curves almost quantitatively. Small but systematic deviations between the approximation and the SAXS data can be observed at low q, which are related to the scattering of larger defects as well as the micrometer-sized granular structure of the sample. Furthermore, by specifying the position of interaction peaks, the first minimum of the approximation appears at slightly larger q-values than found in the experimental data. This weakness of the local monodisperse approximation arises from the neglection of the interparticle interactions between particles of different sizes [76, 80]. Furthermore, one might note that the structure factor (sticky hard sphere) of each particle species of radius R is based on the Percus-Yevick approximation, resulting in an out-of-phase shift as already discussed elsewhere [81, 82].

Note that for the analysis, the radius R0 determined by the SANS experiments (Table 1) was used, while the polydispersity had to be slightly increased, especially for the close-packed particle assemblies synthesized at low SDS concentrations ([SDS] < 9.0 mM) in order to account for the fact that the packing is not crystal-like. The obtained values of the polydispersity pSAXS, the square well thickness Δ, the depth −εS of the potential and the particle volume fraction ϕ are compiled in Table 2. The trend of the volume fraction ϕ of particles in the close-packed assemblies with the SDS concentration is represented in the inset of Fig. 5. As can be seen, the particle volume fraction increases systematically from ϕ = 0.76 at [SDS] = 6.5 mM towards ϕ = 0.82 at [SDS] = 11.0 mM. Impressively, the analysis of the SAXS curves confirms the observations made in the SEM pictures, i.e., that the polydisperse distributions of particles synthesized at [SDS] > CMC allow for a closer packing. Filling some of the voids with the appropriate particles enables high packing efficiencies, i.e., particle volume fraction larger than that of the hexagonal close-packing for monodisperse spherical particles (ϕ = 0.74).

Table 2 Results of the analysis of the SAXS curves using the local monodisperse approximation [76], the sticky hard sphere structure factor [77, 79], and the radius R0 determined by the SANS: polydispersity (pSAXS = σ/R), thickness of the square well Δ, stickiness parameter τ, depth of the square well potential−εS and the volume fraction ϕ of assembled polystyrene nanoparticles

In summary, in this part, we have demonstrated the tuneability of the PS particle size (RSEM ≈ 210 – 20 nm) as well as the polydispersity (pSEM ≈ 0.01 – 0.14) by systematic variation of the surfactant concentration applied in the emulsion polymerization. The increased polydispersity was found to induce a loss of the packing order in close-packed PS nanoparticles, while the particle volume fraction forming the assembly increases.

From close-packed PS nanoparticles to mesoporous PS using the NF-CID principle and its two-step optimization

In the following, the adjustable close-packed PS nanoparticle assemblies prepared and characterized in the first part of this work are used to form porous polymers applying the continuity inversion of dispersion (NF-CID) principle [25, 26] and its new two-step optimization. Some years ago, the feasibility of the NF-CID principle was proven by means of PMMA nanoparticles [25]. In this systematic study, Müller investigated the influence of the NF-CID process parameters, e.g., particle radius, temperature, pressure, and CO2 exposure time, on the pore size and morphology of the obtained porous polymer. Grassberger [29] and some of us [37] applied the NF-CID principle to close-packed PS nanoparticle assemblies. In these studies, it was found that most of the prepared porous polymers exhibit a close-pore morphology. Furthermore, the findings clearly show that both increasing temperature and CO2 exposure time lead to a coarsening of the structure due to Ostwald ripening [83, 84] as well as coagulation and coalescence [85, 86]. Now that we are able to synthesize PS particles with an adjustable radius and polydispersity, we studied the impact of the particle size on the NF-CID principle. The results are summarized in the Supporting Information (Fig. S3). They show that the foaming of hexagonal assemblies of monodisperse PS nanoparticles (RSEM = 35 nm, pSEM = 0.05) filled with sc-CO2 results in an inhomogeneous porous structure with large pores (Rpore = 4.2 ± 1.4 μm) most likely originating from the foaming of packing defects. Instead, foaming a close-packed assembly of polydisperse smaller PS particles (RSEM = 20 nm, pSEM = 0.13) a homogeneous structure with significantly smaller pores (RPore = 450 ± 100 nm) was found to be related to the use of smaller particles, but mainly to the smaller number of packing defects due to the higher packing efficiency (ϕ ≈ 0.82).

However, the NF-CID procedure still suffers from the coarsening of the structure during both the inversion and expansion step. On the one hand, a temperature above the reduced glass temperature Tg* of the CO2 saturated polystyrene is essential to ensure the inversion of the close-packed particle assemblies to sc-CO2 nanodroplets in a highly viscous polymer matrix but also induces the coarsening of these droplets. On the other hand, adjusting a temperature too close to Tg* might inhibit the foaming of the sample, which quickly returns to the glassy state during the subsequent expansion. To overcome these issues, we optimized the NF-CID principle as illustrated in Fig. 6 by conducting the inversion and expansion step at different temperatures. Therefore, the close-packed assembly of polymer nanoparticles is saturated with the supercritical blowing agent at a pressure p > pc (above the critical pressure of the blowing agent (CO2)) and a temperature above but close to Tg* ensuring the inversion of the close-packed particle assembly to blowing agent nanodroplets in a highly viscous polymer matrix (a). To limit coarsening processes during the expansion, the temperature is decreased to T = 25 °C, i.e., below Tg*, to fix the blowing agent droplets by freezing the polymer matrix (b). Then, the pressure is carefully and slowly released to avoid the bursting of the solid matrix (c). Making use of the remaining blowing agent dissolved in the polymer matrix, a subsequent heating step transfers this porous polymer to an open-cellular mesoporous polymer via gentle foaming (d).

Fig. 6
figure 6

Schematic representation of the modified NF-CID method. As for the conventional NF-CID, the close-packed assembly of polymer nanoparticles is soaked with a supercritical blowing agent adjusting the temperature to T > Tg* to enable the continuity inversion into blowing agent filled droplets in a highly viscous polymer matrix (a). After that, the system is cooled to T < Tg* keeping the pressure constant at p > pc to fix the droplets in the glassy matrix (b). Then, the pressure is very slowly released at a constant temperature to avoid the bursting of the matrix (c). A subsequent heating step transfers this porous polymer to an open-cellular mesoporous polymer (d) via gentle foaming

The feasibility of this optimized NF-CID principle was studied using a close-packed assembly of PS nanoparticles with RSEM = 23 nm and pSEM = 0.13. CO2 was added as blowing agent adjusting a pressure of p = 250 bar and a temperature of T = 65 °C for 30 min. This exposure time on the one hand ensured the inversion of the close-packed particle assembly to sc-CO2 nanodroplets to blowing agent-filled inclusions in a highly viscous polymer matrix but on the other hand also limited the coarsening of the inclusions. Further coarsening processes are then avoided by cooling the sample down to T = 25 °C, while keeping the pressure at p = 250 bar. At this temperature, the CO2 nanodroplets are fixed in a glassy polystyrene matrix. Afterwards, the pressure is released at T = 25 °C in order to avoid coarsening processes, which were observed when the expansion was performed at temperatures above Tg*. Note that the pressure was released very slowly (~ 10 min) to prevent the glassy matrix from bursting. Being in the glassy state, both the polymer matrix and the CO2 nanodroplets do not expand during this process. Subsequently, the temperature is increased back to T = 65 °C for 10 min to soften the glassy matrix. Making use of the remaining blowing agent dissolved in the polymer matrix and the lower CO2-solubility at high temperatures, this heating step leads to a gentle foaming of the porous polymer. The structure of the obtained porous polymer is then studied by SEM, providing the pictures shown in Fig. 7. The lower magnification picture (Fig. 7, left) shows a clearly bimodal structure consisting of large almost spherical pores which are surrounded by extended regions exhibiting mesopores of Rpore ≈ 25 nm and open-cellular morphology (Fig. 7, right). The fact that the radius of the mesopores almost quantitatively equals the radius of the used PS particles, i.e., Rpore ≈ RSEM, shows that coarsening processes could be greatly reduced when the expansion step is performed after the CO2-filled inclusions are fixed in a glassy polystyrene matrix.

Fig. 7
figure 7

SEM-images of the porous polystyrene obtained using the modified NF-CID method. A continuity-inversion of a close-packed PS nanoparticle assembly (RSEM = 23 ± 3 nm and a moderate polydispersity of pSEM = 0.13) is induced due to a 30 min exposure to CO2 at T = 65 °C, p = 250 bar. After cooling the system down to T = 25 °C while keeping the pressure at p = 250 bar, the pressure was slowly released. Gentle foaming was subsequently induced by increasing the temperature to T = 65 °C for 10 min. (left) Low magnification SEM image showing the presence of large pores (15 μm). (right) Higher magnification SEM image proving the mesoporous open-cellular structure (Rpore ≈ 25 nm) of the surrounding regions

To conclude, open-cellular mesoporous polymers containing some large pores can be easily prepared using the suggested optimization of the NF-CID principle. Assuming that the large pores most probably originate from defects in the close-packed PS nanoparticle assemblies, the number density of large pores might be adjustable via tuning the polydispersity of the polystyrene particles. Note that inhomogeneous foams which consist of two kinds of cells with a significant difference in cell size attract more and more attention compared with uniform cell structure as they were found to exhibit superior sound absorption capacities [87], heat insulation [88], and mechanical properties [89].

From close-packed PS nanoparticles to ZnO inverse opals

In a second application, the close-packed PS nanoparticle assemblies were used as a template for the synthesis of inverse opals. ZnO inverse opals were prepared in three steps. First, PS nanoparticles with a radius of RSEM = 113 nm and pSEM = 0.02 were assembled in a close-packed structure, as can be seen in Fig. 8a. They showed a common for the opal structures pearlescent reflection color. In a second step, the PS structured template was infiltrated with ZnO precursor solution, which was subsequently mineralized via the chemical bath deposition (CBD) method [63]. For a successful deposition of ZnO within the voids of the template, a charged template surface is required. Although polystyrene is relatively hydrophobic, after 5 deposition cycles, the surface of the PS particles was uniformly covered with ZnO nanoparticles with a radius of approximately 13 ± 2 nm (Fig. 8b). A similar observation was made when porous PS polymers obtained by the NF-CID method were mineralized applying the same procedure [37]. In this case, the oxide deposition was attributed to the presence of charged SDS residues on the surface of the PS particles. While the hydrophobic dodecyl chains of the SDS molecules are assumed to be embedded in the polymer particles during the polymerization process, their hydrophilic and negatively charged sulfate (SO4) head groups stay most probably fixed at the PS particle surface enabling the ZnO deposition [37].

Fig. 8
figure 8

SEM images of a) close-packed assemblies of monodisperse PS particles with a radius of RSEM = 113 nm and pSEM = 0.02, b) close-packed assembly of monodisperse PS particles mineralized with ZnO after 5 deposition cycles, and c) ZnO inverse replica obtained after the annealing of b)

The size of the ZnO nanoparticles is controlled by the presence of PVP in the deposition solution, which serves as a structure-directing agent and restricts the particle growth [90]. Additionally, the presence of small amounts of water in the precursor solution accelerates the thermohydrolysis, slightly increasing the particle size and allowing particle size adjustment [91]. Therefore, to achieve a faster filling of the voids in the close-packed PS nanoparticle assembly and to reduce the number of the deposition cycles, 2 vol.% water was added to the ZnO deposition solution. As opposed to the homogeneous and dense thin films deposited on various organic templates applying this mineralization procedure [63, 92], the close-packed PS particles were covered with a loose film of ZnO particles. One might speculate that this different behavior must be related to the surface properties, i.e., the curvature and nature of the template surface. In spite of the formation of a loose film of ZnO particles on the template particle’s surface after 5 deposition cycles, annealing of the PS/ZnO hybrid resulted in the third step in the formation of an ordered inverse replica of the close-packed PS nanoparticle assembly. As can be seen in Fig. 8c, the ZnO inverse opal structure consists of spherical pores with a radius of around 74 ± 7 nm. Compared to the diameter of the PS template particles, the pore size in the ZnO inverse opal is significantly reduced due to a structure shrinkage during the calcination process. Moreover, the porous structure has open porosity owing to the presence of interconnecting circular pores.

To conclude this part, a close-packed bulk sample of monodisperse PS nanoparticles with a radius of RSEM = 113 nm was successfully used to prepare a ZnO inverse opal with open porosity. The influence of different parameters on the pore size and morphology of the porous material is currently under investigation.

Conclusion

Mesoporous materials are potential candidates for a wide range of applications such as catalysis, sorption, and sensing. In this study, we systematically investigated the influence of the sodium dodecyl sulfate (SDS) concentration utilized in the emulsion polymerization on both the properties of the obtained polystyrene (PS) nanoparticles and the morphology of the close-packed assemblies formed by these particles. Subsequently, these templates were used for the preparation of novel mesoporous polystyrene and ZnO inverse opals.

In the first part, the radius and polydispersity of PS nanoparticles synthesized at different SDS concentrations were determined by small-angle neutron scattering (SANS) and dynamic light scattering (DLS). From the quantitative analysis of the data, the expected strong decrease of the particle radius was found with increasing SDS concentration which levels off at [SDS] ≈ 8.5 mM. The point of inflection of the S-shaped polydispersity profile, which increases from p ≈ 0.03 to p ≈ 0.14, was determined at the same concentration. Both observations are well-known and can be explained by additional micellar nucleation contributing to the particle formation when the critical micelle concentration (CMC) is approached. Interestingly, the micellar nucleation occurred at a considerably lower concentration than expected from the CMC of the binary water–SDS system. Accordingly, the CMC of the system at hand, i.e., the ternary system water–styrene–SDS, was determined by temperature-dependent measurements of the water/styrene–interfacial tension using the spinning drop technique. Extrapolating the found trend to the polymerization temperature of 80 °C, the CMC = 8.0 ± 0.5 mM was shown to agree almost quantitatively with the concentration at which the decrease of PS nanoparticle radius levels off and where the polydispersity profile exhibits its inflection point.

Drying of the dispersions of PS nanoparticles led to the formation of close-packed PS nanoparticle assemblies characterized by scanning electron microscopy (SEM) and small-angle X-ray scattering (SAXS). Both techniques show that the increase in particle polydispersity induces a loss in the packing order. Interestingly, the quantitative analysis of the SAXS curves using the local monodisperse approximation [76] and the sticky hard sphere structure factor [77, 79] confirmed the observations made in the SEM pictures, i.e., that the polydisperse distributions of particles synthesized at [SDS] > CMC allow for a closer packing. Filling some of the voids with the appropriate particles was found to enable high packing efficiencies, i.e., particle volume fractions up to 0.82, which are considerably larger than that of the close-packing of monodisperse spheres (0.74). This denser packing might be advantageous for the application of the obtained porous structures as a substrate for catalytically active compounds or metal nanoparticles.

In the second part, the adjustable close-packed PS nanoparticle assemblies prepared and characterized in the first part were used to form mesoporous polystyrene and ZnO inverse opals. Applying the two-step optimization of the continuity inversion of dispersion (NF-CID) principle [25, 26], we were able to prepare a highly porous polystyrene with a bimodal structure consisting of 15-μm-sized almost spherical pores which are surrounded by extended regions of interconnected mesopores of Rpore ≈ 25 nm. Coarsening processes occurring in the original NF-CID principle could be greatly reduced when the expansion step was performed after the CO2 nanodroplets were fixed in a glassy polystyrene matrix. Through this measure, the radius of the mesopores was found to be an almost one-to-one copy of the used PS particle radius.

In another application, a close-packed bulk sample of monodisperse PS nanoparticles with a radius of RSEM = 113 nm was successfully used to prepare a ZnO inverse opal with open porosity as a proof of concept. Thereby, the voids of this template were mineralized with ZnO via the chemical bath deposition (CBD) method [63]. After 5 deposition cycles, the surface of the PS particles was found to be uniformly covered with ZnO-nanoparticles. Even more interestingly, despite the loose film of ZnO particles covering the PS nanoparticle surface, annealing of the PS/ZnO hybrid resulted in the formation of an ordered inverse replica of the close-packed PS nanoparticle assembly with a pore radius of around 74 ± 7 nm.