1 Introduction

A characteristic CIGS solar cell comprises a p-CIGS absorber, CdS buffer, and ZnO window layer. The presence of low resistive phases like Cu-Se that forms shunt path is one of the main reasons for the deprived effectiveness of CIGS solar cells [1]. Therefore, a moderately resistive film must be used as a buffer layer. In addition to the toxicity, a lower band gap of CdS results in small spectral response in shorter wavelength or the blue region. Another disadvantage of CdS buffer is the low short circuit current density [2]. Therefore, search for an alternate material that has the capacity to replace CdS finds importance in CIGS solar cells. Among II-VI compounds, ZnSe thin film with a good optical response, near lattice matching with CIGS, and having a relatively higher band gap than CdS could be the replacement [3]. However, ZnSe film has a relatively lower transmittance [4] and the band gap has to be further tuned to respond in the shorter wavelength region of solar spectra. Mg dopant has the ability to increase both the band gap and transmittance of wide band gap II-VI compounds [5]. Thus, in the present report, Mg-doped ZnSe film is investigated for the possible application as a buffer layer in CIGS solar cells. Moreover, Mg-doped ZnSe film was prepared by industrially beneficial, cost-effective spray pyrolysis method, adding one more benefit to the list.

2 Experimental details

Mg0.02Zn0.98Se thin films were prepared by spraying the stock solution of 0.05 M magnesium chloride, zinc chloride, and selenourea in water on to glass substrate maintained at 673 ± 5 K. All these chemicals were procured from Sigma Aldrich with research-grade (> 99%) purity. Computerized HOLMARC spray pyrolysis setup was used for growing the film and the thickness was around 600 nm which was confirmed from BRUKER stylus profilometer. Deposited film was analyzed using X-ray diffractogram recorded using Rigaku Miniflex-600 Cu Kα (0.154 nm) with 40 kV, 15 mA at a scan speed of 1°/ min and step size of 0.02°. Surface morphology was studied through scanning electron microscopy (SEM) with model Zeiss SEM EVO18. Transmittance spectra were recorded using SHIMADZU UV-1800. Raman spectra were recorded for the film using LabRAM HR (UV) with 325 nm and 514 nm LASER furnished with CCD detector. Hall measurements were carried out using Van der Paw method via computer interfaced Keithley 2450 source meter at room temperature.

3 Results and discussion

X-ray diffraction pattern of Mg0.02Zn0.98Se film is depicted in Fig. 1a.  The deposited film had a cubic phase with preferred orientation along (111) plane located at 2θ = 28.59º which matches with the card number 00-005-0522. There was a shift in the peak position for Mg-doped ZnSe thin film from that of pristine (28.28º) [4], showing the successful incorporation of Mg2+ ions into Zn2+ sites. Crystallite size was estimated using the Scherrer equation [6] and was found to be 8 nm (with the value of Scherrer constant taken as 0.9 assuming the spherical form of crystallites [7]), which is lower than that of ZnSe films [4]. Further discussion on the Scherrer equation could be found elsewhere [7]. Strain and dislocation density in the film were found to be 4.6 × 10− 3 and 1.6 × 1016, respectively. The broadening of XRD peaks could be related to many factors, in which case Williamson–Hall method could be used to reduce the errors in estimation of the parameters [8, 9]. Crystallite size and strain were estimated using the Williamson–Hall method [8, 9], which takes account of all peaks in the XRD pattern [10]. Crystallite size was estimated from the intercept obtained by linear fitting W–H data points (Fig. 1b). Crystallite size and the average lattice strain were 12 nm, and 6 × 10− 3, respectively. The lattice parameter for the Mg-doped ZnSe sample was 5.4 Å, which is only 3.7% mismatching with that of CIGS indicating MgZnSe thin film as a probable buffer layer.

Fig. 1
figure 1

a XRD pattern of Mg-doped ZnSe thin film, b Williamson–Hall plot for average crystallite size and lattice strain, c Raman spectra of Mg-doped ZnSe thin film, d Lorentzian peak fit of Raman spectra

Phonon behavior of the film was analyzed using the frequency shift of scattered light, i.e., the Raman scattering analysis. For ZnSe, the space group of the cubic unit cell is F43m(Td2) with four formula units [11]: Primitive cell with one formula, other three are optical branches. With no center of inversion in the unit cell, the transverse optic (TO) and longitudinal optic (LO) modes are Raman active [11, 12]. Raman spectrum for the Mg-doped ZnSe thin film is shown in Fig. 1c. The line shape was fitted using Lorentzian (Fig. 1d) to end up with two deconvoluted peaks at ~ 237 cm− 1 and ~ 255 cm− 1. The former mode corresponds to l = 1, a surface phonon mode observed by Pallavi V Taredesai et al. [13]. The appearance of such surface phonon is a characteristic feature of small particle size [14] that is in line with crystallite size obtained from XRD. The peak at 255 cm− 1 corresponds to LO mode of ZnSe. The blue shift in this LO mode compared to the pristine ZnSe thin film [4] is attributed to the compressive strain in the doped film. This is in line with the shift in XRD peak toward higher 2θ.

Scanning electron micrographs showed crackles, pinhole-free, and uniform surface at a magnification of 10k X (Fig. 2a). EDX analysis was done to quantify the amount of constituent elements in the sample. It was found from the EDX spectra (Fig. 2b) that the film had no impurities other than Mg. However, a small amount of oxygen was detected, which could be attributed to the methodology. Composition of Mg, Zn, and Se were 2.10 at%, 57.95 at%, and 39.95 at%, respectively. Se deficiency is majorly from the high-temperature deposition technique, as selenium is more volatile than that of Zn and Mg.

Fig. 2
figure 2

a Scanning electron micrograph, b EDX spectra of MgZnSe thin film, c transmittance spectra (inset, urbach plot), d Tauc plot for Mg0.02Zn0.98Se thin film

Absorbance (not shown here) for the Mg-doped ZnSe film was recorded from 350 nm to 1100 nm. The corresponding transmittance plot is shown in Fig. 2c. The transmittance of the Mg-doped film (~ 60%) nearly doubled compared to the pristine ZnSe sample (~ 30%) [4] in the visible region. Tauc plot of (αhν)2 vs. hν as shown in Fig. 2a was used to find band gap, where α is the absorption coefficient, h is the plank’s constant, ν is the frequency. The curve in the plot was observed to be linear with the power of (αhν) as 2 against hν, indicating the direct band gap [15, 16]. From the intercept of the linear curve, the band gap was estimated. The band gap of Mg-doped film was found to be 3.05 eV from this Tauc plot [17]. This value is higher than the band gap observed for the ZnSe sample (2.73 eV) [4]. This high band gap will enable blue or shorter wavelength light photons to reach the CIGS absorber, wherein this feature is completely absent in CdS and ZnSe buffer layers. Degree of randomness and defect states were found by calculating the Urbach tail, which was obtained by taking the reciprocal of the slope of ln α vs. hν plot (inset of Fig. 2c), where α is the absorption coefficient and hν is the photon energy [18]. Urbach energy in the film was found to be 276 meV. Urbach tail quantified using a parameter called NEAR [19] was 0.88, indicating the presence of defect states [20]. The refractive index was calculated from the Herve–Vandamme relation [21] and found to be 2.33. Thus, with optimum band gap and refractive index, Mg-doped ZnSe becomes one of the competing candidates for buffer layer along with other materials.

To determine the electrical parameters for the deposited films, the Van der Paw method was adopted. A carrier density of 8.2 × 1011 cm− 3, a resistivity of 3.82 ohm-m, and mobility of 2 m2/V/s were observed. The carrier density and resistivity were lower than the CdS films reported by Friedlmeier et al. [22], showing the optimum electrical characteristics of Mg-doped ZnSe films for the buffer layer. All the parameters obtained for the deposited film are listed in Table 1.

Table 1 Structural, optical, and electrical parameters for Mg0.02Zn0.98Se thin films

4 Conclusion

ZnSe film doped with magnesium was deposited using spray pyrolysis and characterized for structural, optical, and electrical properties as a buffer layer in CIGS. Crystallite size was found to be 8 nm with a lower strain of 4.6 × 10− 3 using the Scherrer equation and 12 nm, 6 × 10− 3 using the W–H method. Mg-doped ZnSe film had an optimum band gap of 3.05 eV for buffer layer application. A high carrier density of 8.2 × 1011 cm− 3, a resistivity of 3.82 ohm-m, and mobility of 2 m2/V/s were observed. Having a lattice parameter closer to that of CIGS with only 3.7% of mismatch, and a wide band gap of 3.05 eV, it can be used as a buffer layer in CIGS solar cells to replace toxic CdS.