1 Introduction

In conventional CdTe-based solar cells, there are many reasons that limit device efficiency, such as interface effects, optical losses, grain structure, and impurity diffusion [1, 2]. Therefore, reducing/eliminating these effects is critical to improve cell performance. For this purpose, many applications are carried out to improve the window, absorption and/or contacting parts in the conventional cell structure [3]. Among these regions, studies on the window part were concentrated to overcome some loss mechanisms (such as optical, unfavorable diffusion, and shunt heterojunction). In these studies, the effects of using mostly alternative junction partners (such as CdSe and CdS/CdSe) [4, 5] and transparent conductive oxide (TCO) [such as F:SnO2 (FTO), Sn:In2O3 (ITO), and Cd2SnO4 (CTO)] [6,7,8] on cell parameters were investigated. In addition to these, one of the applications carried out in recent years is the addition of buffer layer to the cell structure [9, 10]. The buffer layer is often used between TCO and junction partner to limit/eliminate the negative interface effects and ensure proper energy band alignment. Although some layers are recommended for the buffer layer, magnesium-doped zinc oxide (MgZnO) material is in demand [11,12,13], owing to stability, adjustable wide bandgap depending on Mg-content (3.3–7.8 eV), low absorption, favorable electronic properties [14,15,16].

In a CdTe cell structure with the buffer layer of MgZnO, CdS thin films are conventionally used as junction partners due to their suitable bandgap (~ 2.4 eV), high carrier concentration, high transmittance and low resistance properties [17, 18]. In this direction, it was shown that the inclusion of the MgZnO layer to CdS/CdTe cell structure improved the band alignment with CdS [19] and enhanced the spectral response in the long wavelength region [20]. This infers that the properties of MgZnO/CdS stacks are one of the most critical factor affecting cell parameters. Many procedures can be performed to improve the features of this stack structure: optimization of heat treatment conditions (temperature, time and annealing atmosphere), variation of deposition parameters, deposition of the layers by different methods, etc. In addition to these, one of the key procedures is also the chlorination process.

CdCl2 is mostly used for chlorination treatment in CdTe-based solar cell. The CdCl2 activation treatment known as the magic effect [21] in the literature is generally applied on CdTe absorber layer. This lead to many superior effects, such as the recrystallization, the growth of grains, reduction of grain boundaries, improvement of junction quality and electronic properties [22,23,24]. On the other hand, there are also studies examining the effect of CdCl2 treatment on CdS. In these studies, it has been revealed that the application of CdCl2 to CdS is an important stage for quality growth the films, the passivation of grain boundaries, transformation of phase structure [25,26,27].

Considering all the above aspects, it is pointed out that CdCl2 treatment to MgZnO/CdS stacks can have an obvious impact on the characteristics of the stacks. However, one of the prominent question is to which location of the stack structure CdCl2 should be applied. In this context, the effect of locational CdCl2 treatment on the MgZnO/CdS (buffer layer/junction partner) structure was in detail examined in this study. CdCl2 treatment was applied only to the top surface, only the inter-face and both inter-surface and top-surface of the MgZnO/CdS stacks. However, the thickness of MgZnO layers in the stacks was adjusted in the ultra-thin form. The reason for this is the intention to provide data to improve parameters in possible applications of the solar cell. From this point of view, an ultra-thin MgZnO layer exhibits the role of the buffer layer described above, but does not cause extra absorption (hence performance loss) due to its thickness.

2 Materials and methods

The samples in which CdCl2 treatment was applied to different locations in MgZnO/CdS stacks were coated on soda lime glass (SLG) substrates. Since substrate directly affects film structure, they were carefully cleaned in an ultrasonic bath for a total of 20 min using acetone, isopropanol, and deionized water before deposition. Then, ZnO seed layer was grown on the substrates to ensure quality growth of the films. The solution of seed layer was formed with 5 mM zinc acetate dehydrate [Zn(OOCCH3)2] in absolute ethanol. For ZnO seed layer, 1 drop/cm2 solution was dripped on the substrates and the substrate surface was dried with N2 gas. Then, the substrates were subjected to a dwell time of 20 s at about 50 °C. The samples were annealed at 350 °C in air atmosphere for 30 min after this step was repeated eight times [28]. After ZnO seeding layer, standard 10% Mg-doped MgxZn1−xO thin films were grown on substrates seeded using the chemical bath deposition (CBD) method. To deposit Mg0.1Zn0.9O layers by CBD method, 25 mM ZnCl2, 5 mM MgCl2.6H2O and 50 mM hexamethylenetetramine were mixed in 150 mL de-ionized water for 3 h. Then, the bath temperature was adjusted to 85 °C and the seeded substrates were immersed in MgZnO solution [29]. MgZnO films with a thickness of 20–25 nm were obtained for a deposition time of 30 min. After MgZnO layers were grown, CdS thin films were also coated by CBD method. CdS solution was prepared using 15 mM 3CdSO40.8H2O, 1.5 M thiourea and 25% ammonia hydroxide and a bath temperature was adjusted 80 °C. CdS film thickness of 70–80 nm was targeted for a deposition time of 12 min.

CdCl2 treatment was carried out using a saturated solution by wet processing method. First, one drop solution was exposed to the film surface and then dried at a temperature of about 60 °C. To examine the locational effect of the chlorination on MgZnO/CdS stacks, CdCl2 treatment was applied to the top-surface (on top of CdS), the inter-face (between MgZnO and CdS), both the top-surface and the inter-face (on top of CdS and between MgZnO and CdS) and untreated (without CdCl2). The prepared stacks were annealed for 20 min in air atmosphere at temperature of 450 °C. In this context, the resultant samples are shown in Fig. 1.

Fig. 1
figure 1

MgZnO/CdS samples in which CdCl2 treatment applied to a top-surface, b inter-face, c both top-surface and inter-face, and d untreated MgZnO/CdS

To investigate the structural properties, X-ray diffraction (XRD) patterns were taken with a thin film apparatus on the Rigaku Smartlab diffractometer using CuKα radiation (λ = 1.5406 Å). The measurements were performed in the range of 20–60° with a data step width of 0.02°. The morphological properties were examined with FEI QUANTA 250 FEG scanning electron microscope (SEM) instrument. SEM images were obtained without gold coating of the sample surface utilizing an accelerating voltage of 25 kV. Transmittance measurements were performed with Dongwoo Optron UV–Vis spectrophotometer with the data collection step of 1 nm in the range of 300–1000 nm. To define the defect nature of the sample, room temperature photoluminescence spectra (RTPL) were obtained with SpectraMax M5 at 280 nm excitation wavelength and a wavelength range of 325–650 nm (step width of 1 nm). Ellipsometric analysis were carried out by J.A. Woollam spectroscopic ellipsometer in the wavelength range of 300–100 nm to determine the thickness and refractive index of the samples.

3 Results and discussion

3.1 XRD patterns

The XRD patterns of the samples investigating the effect of locational CdCl2 treatment in the MgZnO/CdS stacks are shown in Fig. 2. The deconvolution results applied to clarify the indistinct peak points in the patterns are also shown in the figure. The XRD pattern of untreated MgZnO/CdS sample showed a set of peaks at 26.68°, 44.23° and 52.35° crystallizing in cubic phase. It was detected that the peaks in the spectrum were systematically shifted to the right compared to the cubic phase of CdS (Card No: 00-010-0454). The shift may be due to the cation substitution of Mg and/or Zn atoms in MgZnO ternary compound with Cd atoms in the CdS lattice, thus the formation of MgCd and/or ZnCd anti-site defects. This can be confirmed in the calculations of the radius percentage difference (Dr), which is determined based on the coordination numbers (CN) of the ions [30]. The Dr value of Mg (R = 0.72 Å, CN = 6) dopant ion instead of the host cation Cd (R = 0.78 Å, CN = 4) was calculated as 7.7%. In addition, the Dr value for Zn (R = 0.74 Å, CN = 6) instead of host Cd was determined as 5.1% (see [31] for radius values). Since the Dr values of Mg and Zn atoms are below 30%, it is possible for Mg and/or Zn ions to locate in CdS lattice [32]. However, incorporation of Zn ions into CdS lattice is more likely because the ionic radii of Zn and Cd are closer each other and the amount of Mg in an ultra-thin MgxZn1–xO layer (x ~ 0.1) is considerably less than Zn. Besides, as a result of the formation of ZnCd defect, the lattice parameter is expected to decrease. Using Bragg's law and the crystal equation of the cubic structure, the lattice parameter for (111) peak was calculated as 5.783 Å, which is smaller than the lattice parameter of cubic CdS (a = 5.818 Å). As seen in the spectrum of MgZnO/CdCl2/CdS sample, application of CdCl2 treatment to the inter-face caused a transformation that the crystal structure of Zn:CdS changed from cubic phase to a dominant hexagonal phase, as a result of recrystallization. The lattice parameter of hexagonal structure was calculated as a = 4.132 Å and c = 6.707 Å based on the peaks at 24.86° and 26.56° corresponding to (100) and (002) orientations. According to this values, it can be said that Zn-ions are included in the hexagonal CdS-lattice. In addition, a strong CdO phase crystallized in a cubic structure was also formed in the spectrum of the MgZnO/CdCl2/CdS sample (Card No: 00-005-0640). In the MgZnO/CdS/CdCl2 sample in which CdCl2 treatment is applied to the top-surface, the appearing peaks at 26.57°, 43.97° and 52.14° are attributed to the cubic CdS (Card No: 00-010-0454). In addition, there is another shoulder peak at 28.20° in the spectrum, indicating the presence of hexagonal CdS (Card No: 00-041-1049). The other promoter of the hexagonal phase is the peak at 26.57°, which is in a similar position to the cubic CdS. Considering in this context, it can be said that CdS may be in mixed phase (cubic + hexagonal) [33]. In addition, the peaks around 33.06° and 55.37° in the same spectrum correspond to the cubic CdO phase. The MgZnO/CdCl2/CdS/CdCl2 sample in which both inter-face and the top-surface were treated with CdCl2 had a spectrum similar to the sample that CdCl2 was applied to only inter-face. It can be said that hexagonal Zn:CdS structure (~ 3% doping) and cubic CdO phases were formed in the MgZnO/CdCl2/CdS/CdCl2 sample.

Fig. 2
figure 2

XRD patterns and corresponding deconvolution results of the samples of a MgZnO/CdS, b MgZnO/CdCl2/CdS, c MgZnO/CdS/CdCl2, d MgZnO/CdCl2/CdS/CdCl2

MgZnO thin films has a structure that crystallizes well under suitable conditions [15, 34]. In the evaluation of XRD results, it was seen that no MgZnO phase formed in all samples. The one of the reasons for this may be the utilization of an ultra-thin MgZnO layer in the stack structures. In addition, it may be also low Mg-concentration (~ 10%) in MgZnO thin films. Besides, experimental conditions such as annealing conditions and growth parameters used in the preparation of the samples may not be suitable for the MgZnO phase to emerge.

One of the important results revealed in XRD patterns is also crystallization and phase transformation. Annealing at 450 °C for 20 min of the samples showed that although it was not optimal for the formation of MgZnO phase, it was sufficient to improve the crystal quality of CdS with nano-amorphous structure [35]. Moreover, while the untreated MgZnO/CdS sample was a cubic nature, applying CdCl2 treatment to the inter-face gave rise to transformation into a dominant hexagonal phase. However, while the CdCl2 applied on top surface of CdS in the stack structure led to the preservation of the cubic nature of the sample, just as in the untreated sample; application of CdCl2 treatment to both the inter-face and the top-surface caused to hexagonal phase of CdS. Based on these results, it can be said that the CdCl2 applied to the inter-face in the stack structure is an effective role in the phase transformation.

Williamson–Hall analysis is an integral width method which asserts that diffraction line broadening result from size-induced and strain-induced broadening and can be written [36, 37];

$$\beta_{{{\text{hkl}}}} { = }\beta_{{\text{d}}} { + }\beta_{{\text{e}}}$$
(1)

where βd is size broadening, βe is strain-induced broadening and βhkl is the full width at half maximum (FWHM). Size contribution and strain broadening are calculated by

$$\beta_{{\text{d}}} = \frac{0.94\lambda }{{D\cos \theta }}{\text{ and }}\beta_{{\text{e}}} = 4\varepsilon \tan \theta$$
(2)

where D is the average particle size, λ is the X-ray wavelength, θ is the diffraction angle and ɛ is the micro-strain value. Therefore, the line broadening is represented by the Williamson–Hall equation [38]:

$$\beta_{{{\text{hkl}}}} { = }\frac{0.9\lambda }{{D\cos \theta }} + 4\varepsilon \tan \theta$$
(3)

By rearranging the above equation;

$$\beta_{{{\text{hkl}}}} {\text{cos}}\theta { = }\frac{0.9\lambda }{D} + 4\varepsilon \sin \theta$$
(4)

For the Williamson–Hall plot, the graph of 4sinθ with respect to βhklcosθ is drawn. Then, particle size and micro-strain can be calculated from the intercept point and the slope of fit line, respectively. Williamson–Hall plots for all samples are shown in Fig. 3. The value of particle size and micro-strain of each sample are given in Table 1. In the calculations, only the phases related to CdS were taken into account. In the table, the particle size values vary between 70 and 189 nm. These values are higher than the previous studies [39, 40]. This may be due to the deposition of the stack structure on the ZnO seed layer and annealing for a long time (20 min) at a high temperature (450 °C) of the samples. Applying CdCl2 treatment to inter-face of the stack structure caused the particle size to increase significantly. However, the essential strong effect was achieved by applying the CdCl2 only to the top-surface (i.e., above the CdS), resulting in a more than two times increase in particle size. CdCl2 treatment to both the inter-face and the top-face led to the smaller particle size than the untreated sample. The reason may be due to the degradation of the surface morphology of the stack caused by intensive CdCl2 treatment. The table shows that the CdCl2 treatment have induced a sharp effect on the lattice strain values caused by crystallization. CdCl2 applied to the inter-face weakened the strain effect. However, CdCl2 applied to the top-surface led to the lattice strain value to increase significantly compared to the sample applied CdCl2 only to the inter-face. However, the applying CdCl2 treatment to both surface resulted in similar levels to the inter-face CdCl2 sample. These values imply that the significant effect on strain attenuation is caused by CdCl2 treatment applied to the inter-face region.

Fig. 3
figure 3

Williamson–Hall plots of the samples

Table 1 Calculated particle size and strain values of the samples using Williamson–Hall plots in Fig. 4
Fig. 4
figure 4

SEM images of a MgZnO/CdS (Inset: MgZnO), b MgZnO/CdCl2/CdS, c MgZnO/CdS/CdCl2, d MgZnO/CdCl2/CdS/CdCl2

3.2 SEM images

SEM images of the samples applied CdCl2 treatment to different locations in MgZnO/CdS stacks are shown in Fig. 4. To define the effect of the underlying ultra-thin MgZnO layer on the surface morphology of the untreated MgZnO/CdS sample, the SEM image of the MgZnO layer in the inset of Fig. 4a is also seen. As seen from the inset, the surface of MgZnO consists of uniform, hexagonal grains. However, the untreated MgZnO/CdS sample has a polycrystalline, homogeneous, uniform grain structure with inter-granular voids. The grain sizes range from 250 to 400 nm. Since SEM images are acquired in a near-surface region, it can be considered the main contribution to the surface morphology is provided by CdS layer. However, CdS grains are known to be spherical and small-grained [41]. In this sense, although an image was obtained from the region close to upper surface in the stack structure, it is clear that the presence of MgZnO at the bottom makes a significant effect to the formation of a distinctive grain structure.

The application of CdCl2 treatment to the inter-face of MgZnO/CdS stacks did not cause an evident effect on the shape and size of grains, while the inter-granular voids were reduced, resulting in a denser structure. However, the densest structure among the samples was obtained with the application of CdCl2 treatment on the top-surface of MgZnO/CdS stack. The grain sizes increased (350–500 nm) and the inter-granular voids decreased. The application of CdCl2 to both the inter-face and the top-surface brought about the surface morphology to completely change, resulting in the formation of a porous structure. In the sample, the surface became more compact and hence the grain boundaries decreased. This is due to the application of excessive CdC2 treatment, resulting in a completely different microstructure by splitting some of the larger grains into smaller grains [42].

3.3 Optical properties

The transmittance curves of the samples between 300 and 1000 nm are presented in Fig. 5. In the figure, regardless of the locational CdCl2 treatment, all samples have an absorption edge of around 500 nm, pointing out the presence of CdS in the stack structure. In this context, band edge shifted slightly to the right (hence higher energies) compared to bulk CdS (~ 2.42 eV). This may be due to the reaction of CdS with oxygen molecules both during the growth of CdS by the CBD method and during the annealing in air atmosphere [43]. In addition, an absorption edge corresponding to MgZnO was formed at around 330 nm in all samples. However, it was also detected that only the MgZnO/CdCl2/CdS/CdCl2 sample had an indistinct transition around 370 nm, implying the existence of ZnO seed layer. In this context, it can be said that applying CdCl2 treatment to both surfaces reveals the absorption edges of all layers present in the stack structure more clearly compared to other samples. From the figure, it was observed that CdCl2 treatment improved the transmittance in the range of 330–500 nm. In this region between the absorption edge of CdS and MgZnO (330–500 nm), it was revealed that CdCl2 treatment on both surfaces increased the transmittance compared to CdCl2 applied only to the inter-face and/or only to the top-surface. However, in the higher spectral region than the absorption site (> 500 nm), applying CdCl2 treatment only to the inter-face or to the top-surface was found to improve the transmittance.

Fig. 5
figure 5

Transmittance data of MgZnO/CdS samples applied to locational CdCl2 treatment

3.4 Photoluminescence spectra

The photoluminescence spectra at room temperature (TRPL) of the samples and their corresponding deconvolution results are given in Fig. 6. However, since the stack structure consists of MgZnO and CdS thin films together with the ZnO seed layer, it would be more suitable to evaluate the PL spectra by considering the existence of all layers. All samples have the emission peaks around 332, 358, 420, 442, 485, 530, 567 and 581–595 nm. Among these, the band at 332 nm is attributed to 2E1 (LO) Raman mode of ZnO [44]. However, the PL emission around 358 nm revealed the band-edge emission of MgZnO [30]. The peaks around 420 nm and 442 nm in MgZnO are associated with defect structures showing interstitial zinc (IZn) and vacancies oxygen (VO), respectively [45, 46]. Furthermore, these may also correspond to band transitions attributed to defects in the blue spectrum region of CdS [47]. The band around 485 nm may be ascribed to the transition from interstitial zinc (Zni) to Zn gap levels in ZnO [48]. In addition, this band may correspond to host CdS, due to the presence of stack structure [49]. The band-edge emission of CdS revealed with the transition around 530 nm, while the peak appearing at 567 nm may be associated with deep-level emissions [49, 50]. On the other hand, the reason for the emission in this position may be transitions from intrinsic shallow donors to deep acceptors in MgZnO layer [51]. Peak around 390 nm formed only in the untreated and the top-surface CdCl2 samples can be referred to the transitions of the free excitons in ZnO [52]. The recombination of electrons in the ionized oxygen vacancy with photo-excited holes in the valence band can be ascribed to emissions in the range of 566–595 nm [53].

Fig. 6
figure 6

Photoluminescence data of MgZnO/CdS samples

3.5 Ellipsometer measurements

Ellipsometer technique provides sensitive analysis of optical refractive properties of thin films/stacks [54]. In this respect, the refractive index dispersions of the samples determined using the spectroscopic ellipsometer are shown in Fig. 7. The untreated MgZnO/CdS sample exhibited a sharp transition around 500 nm, which is attributed to the E0 inter-band transition of CdS [55]. Refractive index value at maximum point was recorded as 2.61, consistent with previous work of CdS [56, 57]. However, transition related to MgZnO in the untreated sample was no observed, probably due to an ultra-thin layer. In the MgZnO/CdCl2/CdS sample in which CdCl2 was applied to the inter-face, the refractive index value decreased in comparison with the untreated sample (n ~ 1.81). However, the refractive maximum shifted to ~ 530 nm, possibly due to the change in phase structure in this sample. In addition, in the wavelength region higher than 820 nm, a re-increment of the refractive index may indicate the presence of defect transitions. This results may be due to the fact that it shows its impact on the optical constants by activating the MgZnO layer with the effect of CdCl2 treatment applied to the inter-face, although a transition regarding the MgZnO layer is not revealed. The refractive index curve of MgZnO/CdS/CdCl2 sample varied distinctly. The sample exhibited the refractive maxima at 315 nm (n ~ 1.63) and 515 nm (n ~ 1.61), indicating E0 inter-band transitions of MgZnO and CdS, respectively [55, 58]. The application of CdCl2 treatment only to the top-surface in the stack structure led to decreasing of refraction index (n ~ 1.61), referring to disorders in polycrystalline films [59]. However, the application of CdCl2 to both the inter-face and the top-surface caused the sharp band transitions to disappear. This may be due to the surface morphology turning into a porous structure. Maximum of refractive index with Gaussian distribution shifted to the longer wavelength region (~ 560 nm) and the value of refractive index reached to similar levels with the sample applied to only inter-face of CdCl2.

Fig. 7
figure 7

Refractive index data of the samples

The graph of the extinction coefficients of the samples depending on the wavelength is shown in Fig. 8. The extinction coefficients were calculated using Eq. (5) [60]. From the figure, it is seen that the untreated MgZnO/CdS among the samples has the highest extinction coefficient between 300 and 500 nm, but the extinction coefficient decreases rapidly in spectral region higher than 500 nm. However, in the other samples in CdCl2 treatment applied, a maximum is observed especially around 500 nm, referring to the spectral point of maximum extinction (hence the absorption). In addition, the CdCl2 treated samples also have an absorption edge of around 330 nm, corresponding to the presence of MgZnO, as expected. This edge was also confirmed by transmittance curves.

$$k = \frac{\alpha \lambda }{{4\pi }}$$
(5)
Fig. 8
figure 8

Extinction coefficient data of MgZnO/CdS samples

4 Conclusion

In this study, the effect of locational CdCl2 treatment on MgZnO/CdS stacks deposited by CBD method was investigated. In the stack structure using ultra-thin MgZnO layer, CdCl2 treatment was applied only to the inter-face, only to the top-surface and to the both inter-face and top-surface. Structural analysis of the samples revealed the incorporation of Zn ions into CdS crystallizing in a cubic structure in the untreated MgZnO/CdS and MgZnO/CdS/CdCl2 stacks. On the other hand, the application of CdCl2 treatment to the inter-face and both-surfaces transformed the crystal structure into hexagonal and also formed the cubic CdO phase. In this context, it can be said that the effect of the underlying MgZnO layer on the phase structure of the samples is limited. This may be due to the use of an ultra-thin MgZnO layer on the underside. Surface morphology images showed that the samples except the MgZnO/CdCl2/CdS/CdCl2 had a polycrystalline and a coarse-grained structure due to the underlying the layers and the applied heat treatment. However, the CdCl2 treatment applied to both surfaces caused the morphology to change, resulting in a porous structure. Transmittance curves of the samples exhibited absorption edges around 500 nm and 330 nm. In addition, it was observed that the desired high transmittance for window structures was achieved in the spectral region after the absorption. Photoluminescence spectra demonstrated the defect structures associated with the MgZnO and the CdS layers in the stacks, such as oxygen vacancy, band-edge emissions and deep level transitions. Furthermore, since some defect transitions of MgZnO and CdS materials are in similar emission bands, it has been evaluated that these defects may belong to both layers. While the refractive index curves did not reveal the presence of MgZnO in the untreated sample, a shift in the Eo-inter-band transition and a decrease in the index value were observed in the inter-face CdCl2 sample. However, the band transitions of MgZnO and CdS were properly observed with the CdCl2 treatment applied only to the top-surface. On the other hand, CdCl2 treatment of both surfaces eliminated the presence of sharp transition in agreement with the surface images. The extinction coefficients confirmed that the maximum extinction point was around 500 nm except for the untreated sample, consistent with the transmittance curves.

Considering all results, it is clear that local CdCl2 treatment has a distinct effect on the structural and optical properties of MgZnO/CdS stacks. However, to estimate the effect of local CdCl2 treatment on CdTe solar cell performance, it would be beneficial to examine the MgZnO/CdS/CdTe triple stack structure. In this context, the results obtained for the window part of the locational CdCl2 treatment, it is a pioneer for potential survey and can improve cell performance with new optimization processes in the light of the results in the study.