1 Introduction

Kesterite thin films of the structure Cu2-M-Sn-X4 (M = Zn, Cd, Mn, Co and X = S, Se) attached a great deal of attention in the current articles owing to they have a high absorption coefficient, a promising energy gap, the low-cost element and high earth abundant of all elements [1,2,3,4]. The Cu2ZnSnS4 (CZTS) is one of the important Kesterites that utilized as absorber layer in the solar cell. CZTS thin film solar cell was fabricated via vacuum and non-vacuum procedures. The efficiency of the CZTS solar cell reaches to about 9.6% by thermal evaporation process [5] and reaches to 5.1% by spray pyrolysis technique [6]. The substitution of Zinc in the CZTS thin film with other transition metals like Nickel, cobalt and iron will produce some new materials like Cu2NiSnS4, Cu2CoSnS4, Cu2FeSnS4 suitable for the PV devices [7].

Cu2NiSnS4 has a similar structure to the Cu2ZnSnS4 material. The Cu2NiSnS4 is an important p-type Kesterite material which has a high absorption coefficient (large than 104 cm−1) and a promising band gap in the 1.14–1.3 eV range [8]. Several preparation methods were utilized to manufacture the Cu2NiSnS4 thin films like solvothermal method [9], hydrothermal [10], hot injection [11], spin coating method [12], electrodeposition [13], and dip coating [14] techniques.

The previous articles on the Cu2NiSnS4 films were focused on some linear optical properties as the band gap and the absorption coefficient. Chen et al. [13] shows that the Cu2NiSnS4 thin films exhibit a high absorption coefficient and a suitable band gap. Krishnaiah et al. [14] demonstrates that the magnitudes of energy gap were decreased with increasing the dipping time. On the other hand, the studies on the other optical parameters of the Cu2NiSnS4 thin films like, refractive index, extinction coefficient, optoelectrical parameters and nonlinear optical parameters were not presented in the articles so, in the present work, special focus is set on the optoelectrical parameters, linear and nonlinear optical parameters of the Cu2NiSnS4 films.

2 Experimental section

2.1 Thin film synthesis

High quality Cu2NiSnS4 films were fabricated on cleaned glass substrates via an inexpensive spray pyrolysis deposition method 350 °C. The Cu2NiSnS4 precursor solution composed of 0.1 M copper nitrate dehydrate, 0.05 M nickel nitrate dehydrate, 0.05 M stannic chloride dehydrate and 0.2 M thiourea. A mixture of methanol to water ratio of 1:2 ml has been used for solution preparation. The pH of the solution set at 9. The final Cu2NiSnS4 solution was sprayed into a heated glass substrate held at 350 °C. The spray process occurred at different spray times 10, 20, 30 and 40 min. A digital temperature controller joined with a thermocouple was used to control the substrate temperature. After the preparation, thin films were cooled at ambient temperature. The sprayed Cu2NiSnS4 films were uniform and adherent to the substrates.

2.2 Fabrication of Ag/n-Si/CNSS/Au heterojunction

Firstly, the n-type single crystal silicon wafer subjected to etching processing using a CP4 solution consists of 5 HNO3: 3 HF: 3 CH3COOH to clear any oxide layer from the surface of the silicon wafer, thereafter the silicon wafer was cleaned with ethyl alcohol and deionized water respectively. Then, Ag electrode has been deposited onto the back surface of the Si substrate by thermal evaporation technique to form the bottom ohmic contacts. The CNSS thin film of thickness 461 nm was sprayed on the top of the n-Si wafer by spray pyrolysis method. The top ohmic electrode was formed by evaporating of Au metal onto CNSS films. The Ag/n-Si/CNSS/Au heterojunction device has been represented in Fig. 1.

Fig. 1
figure 1

X-ray diffraction spectra for the Cu2NiSnS4 thin films

2.3 Characterization of the Cu2NiSnS4 thin films

The thickness of the sprayed Cu2NiSnS4 thin films was estimated by using alpha step D 500 stylus profilometer. The structural characterization of the Cu2NiSnS4 thin films was analyzed by Philips X’ pert diffractometer with CuKα radiation (λ = 1.540 Å). The surface morphology of the Cu2NiSnS4 thin films were studied by field emission scanning electron microscope (FE-SEM) type (type FESEM, Quanta FEG 250, and FEI, USA). The optical, optoelectrical and nonlinear optical properties of the Cu2NiSnS4 thin films were evaluated by measuring both of transmittance and reflectance for the Cu2NiSnS4 thin films in the range of 400–2500 nm via spectrophotometer (type JASCO Corp., V-570). The current–voltage characterization of the Ag/n-Si/CNSS/Au heterojunction was recorded by high impedance electrometers (Type Keithley 614). A halogen lamp with intensity of 100 mW/cm2 has been used to illuminate the Ag/n-Si/CNSS/Au heterojunction.

3 Results and discussion

3.1 Structural analysis

3.1.1 XRD diffraction

Figure 1 represents the results of X-ray diffraction patterns for the Cu2NiSnS4 films fabricated at various thicknesses 196 nm, 297 nm, 354 nm and 461 nm. As illustrated in the figure, the presence of sharp peaks confirms the polycrystalline nature of the Cu2NiSnS4 thin films. It is clear that the Cu2NiSnS4 films are single phase with a cubic structure, which confirmed by good coincidence of d–values of observed peaks with Cu2NiSnS4 phase in Standard JCPDS file no. 260552, as well the absence of any extra planes that reveal the existence of any secondary phases. The presence of (100) peak for the Cu2NiSnS4 film of thickness 354 nm was related to Cu2NiSnS4 and this peak could be attributed to the presence of disorder in the hot plate temperatures during the film deposition.

The interplanar spacing d hkl of the given Miller indices h, k and l magnitudes of the Cu2NiSnS4 thin films were evaluated via Bragg’s law [15]:

$$2d_{hkl} \sin \theta = n\lambda ,$$
(1)

where n represents the order of diffraction (n = 1) and λ is the wavelength of X-ray. The lattice parameters of the tetragonal structure of the sprayed Cu2NiSnS4 thin films were evaluated from the (111) plane using the following relation [16]:

$$d_{hkl} = \frac{a}{{\sqrt[2]{{h^{2} + k^{2} + l^{2} }}}}$$
(2)

The estimated values of the unit cell volume and the lattice parameters of the sprayed Cu2NiSnS4 thin films are recorded in Table 1 and they are in agreement with the JCPDS magnitudes.

Table 1 The structure parameters for the sprayed Cu2NiSnS4 thin films

The magnitudes of the grain sizes (D), the lattice strain (ε) and the dislocation density (δ) of the sprayed Cu2NiSnS4 thin films were calculated by the presented formulas [17,18,19]:

$$D = \frac{K\lambda }{\beta \cos \left( \theta \right)}$$
(3)
$$\varepsilon = \frac{\beta cos\left( \theta \right)}{4}$$
(4)
$$\delta = \frac{1}{{D^{2} }}$$
(5)

where β represents the full-width at half maximum of the peak (in radian) and θ represents the corresponding Bragg’s diffraction angle at the peak position, λ represents the X-ray wavelength (λ = 1.540 Å).

The calculated values of the dislocation density (δ), the lattice strain (ε) and the grain size (D) of the sprayed Cu2NiSnS4 thin films were noted in Table 1. It is observed from Table 1 that the increase of the film thickness is attended with an increase in the grain size D and decrease in the lattice strain , and the dislocation density . The dependence of the crystallites size (D) and the strain (ε) on the film thickness for the Cu2NiSnS4 films were presented in Fig. 2. By increasing the film thickness the crystallites size (D) increases and the strain (ε) decreases.

Fig. 2
figure 2

The crystallite size and lattice strain as a function of the Cu2NiSnS4 film thickness

3.1.2 Field emission scanning electron microscope (FE-SEM)

The microstructural of the Cu2NiSnS4 thin films has been investigated via field emission scanning electron microscope (FE-SEM). The FE-SEM photograph of the Cu2NiSnS4 thin film of thickness 461 nm displays that the film consists of a spherical grains and surface of the film seems to be uniform and homogenous. The EDX pattern of the Cu2NiSnS4 thin film of thickness 461 nm approves the presence of copper, nickel, tin and sulfur. The atomic ratio of Cu, Ni, Sn and S in the Cu2NiSnS4 thin film is near 2:1:1:4 so the Cu2NiSnS4 thin films are near stoichiometric in composition (Fig. 3).

Fig. 3
figure 3

FE-SEM micrographs and EDX analysis of the Cu2NiSnS4 thin film with thickness 461 nm

3.2 Linear optical properties

3.2.1 Transmittance and reflectance analysis

The spectral spreading of optical reflectance and transmittance of the sprayed Cu2NiSnS4 films of thickness 196 nm, 297 nm, 354 nm and 461 nm as a function of wavelength was represented in Fig. 4a and b. From these curves, the reflectance values increase with the increasing the thickness while the transmittance values decrease with the increasing the film thickness of the sprayed Cu2NiSnS4 films.

Fig. 4
figure 4

a The transmittance spectra of the sprayed Cu2NiSnS4 films under investigation and b the reflectance spectra of the sprayed Cu2NiSnS4 films

3.2.2 Absorption coefficient and optical band gap analysis

The absorption coefficient (α) of the Cu2NiSnS4 films was calculates via the following expression [20]:

$$\alpha = \frac{1}{t}ln\left[ {\frac{{\left( {1 - R} \right)^{2} }}{2T} + \left( {\frac{{\left( {1 - R} \right)^{4} }}{{4T^{2} }} + R^{2} } \right)^{1/2} } \right]$$
(6)

where t represents the value of film thickness and K represents the extinction coefficient of the Cu2NiSnS4 thin films.

The absorption coefficient, \({{\upalpha }}\) of the Cu2NiSnS4 thin films was presented in Fig. 5a. It is appeared from this plot that the absorption coefficient of the Cu2NiSnS4 films was decreased as the wavelength increase and increase with increasing the thickness of the Cu2NiSnS4 films.

Fig. 5
figure 5

a The absorption coefficient as a function of wavelength for the Cu2NiSnS4 thin films, b plot of \(\left( {\alpha h\nu } \right)^{2}\) versus the photon energy \(h\nu\) for the Cu2NiSnS4 thin films

The relation between the absorption coefficient (α) and incident photon energy () in the high absorption region of semiconductor can be used to evaluate the kind of optical band transition relating to Tauc’s formula [21]:

$$\alpha h\nu = B\left( {h\nu - E_{g} } \right)^{n}$$
(7)

where represents the photon energy, Eg represents the optical band gap, B is complex parameter depending on temperature and photon energy and n is a number determines the type of optical transition process. The magnitudes of n are 1/2, 2, 3/2 and 3 for a direct allowed, indirect allowed, direct forbidden and indirect forbidden transitions, respectively. It was found that the best linear fit for n values were at n equal 1/2, which reveal a direct optical transition. In this study, the value of n = 2 did not give any linear relation. The values of (αhν)2 as a function of the photon energy () for the Cu2NiSnS4 thin films is represented in Fig. 5b. The plot gave a straight line and the value of band gap is obtained by extend this straight line to intercept x-axis at zero absorption. The values of a direct energy gap of the Cu2NiSnS4 thin films were listed in Table 2. It can observe from this table that the evaluated direct energy gap were decreased from 1.28 to 1.14 eV by increasing the thickness of the Cu2NiSnS4 films this behavior is attributed to many factors, like the increase of grain size, increase of disorders and the variations in barrier height at the grain boundaries through increasing thickness of the sprayed Cu2NiSnS4 films [22].

Table 2 The optoelectrical and nonlinear optical parameters for the Cu2NiSnS4 films

3.2.3 Extinction coefficient and refractive index analysis

For evaluating the magnitudes of the extinction coefficient K of the Cu2NiSnS4 thin films we have used the following expression [23]:

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

The variation of the extinction coefficient of the sprayed Cu2NiSnS4 thin films with the wavelength was illustrated in Fig. 6a. It can observe from figure that the magnitudes of the extinction coefficient K were increased with increasing the thickness of the Cu2NiSnS4 films and decreases with the increase in wavelength K.

Fig. 6
figure 6

a The extinction coefficient as a function of wavelength for the sprayed Cu2NiSnS4 films, b the refractive index as a function of wavelength for the sprayed Cu2NiSnS4 films under study

The refractive index (n) of the sprayed Cu2NiSnS4 thin films was evaluated by the Fresnel relation depending on the extinction coefficient K and reflectance R as follows [24]:

$$n = \frac{{\left( {1 + R} \right)}}{{\left( {1 - R} \right)}} - \left( {\frac{4R}{{\left( {1 - R} \right)^{2} }} - K^{2} } \right)^{{\frac{1}{2}}} .$$
(9)

The variation of the refractive index n of the sprayed Cu2NiSnS4 thin films with the wavelength was represented in Fig. 6b. It is obvious from this plot that he refractive index of the sprayed Cu2NiSnS4 films was increased with increasing the film thickness and decreased with the increase in wavelength \(\lambda\).

3.3 Optoelectrical characterization

3.3.1 Dielectric constants

The dielectric constants of the Cu2NiSnS4 thin films can be determined according to the following expressions [25, 26]:

$$\varepsilon_{1} = {\text{n}}^{2} - {\text{k}}^{2}$$
(10)
$$\varepsilon_{2} = 2{\text{nk }}$$
(11)

where ε2 represents the imaginary part of the dielectric constant and the ε1 represents the real part of dielectric constant for the Cu2NiSnS4 thin films.

Figure 7 a and b represents the wavelength dependence of real and imaginary part of the dielectric constant for the Cu2NiSnS4 films. It has been observed that the real and imaginary part of dielectric constant were increased with increasing the thickness of the Cu2NiSnS4 films and decreases with increasing the wavelength.

Fig. 7
figure 7

a The variation of the real dielectric constant as a function of wavelength for the sprayed Cu2NiSnS4 films, b the variation of the imaginary dielectric constant as a function of wavelength for the sprayed Cu2NiSnS4 film

3.3.2 Optical carrier concentration and relaxation time

The ratio of the charge carrier concentrations to the effective mass, \(N_{opt} /m^{*}\) and the lattice dielectric constant, \(\varepsilon_{L}\), of the sprayed Cu2NiSnS4 films have been evaluated using the presented expression [27, 28]:

$$n^{2} = \varepsilon_{L} - \left( {\frac{{e^{2} }}{{4\pi^{2} c^{2} \varepsilon_{0} }}} \right)\left( {\frac{{N_{opt} }}{{m^{*} }}} \right)\lambda^{2}$$
(12)

where \(c\) represents the velocity of light, \(e\) represents the electronic charge.

Figure 8 displays the dependence of \(n^{2}\) on \(\lambda^{2}\) for Cu2NiSnS4 thin films. The values of the \(N_{opt} /m^{*}\) for the Cu2NiSnS4 thin films were estimated from the slopes of the graph while the values of \(\varepsilon_{L}\) for the Cu2NiSnS4 thin films were evaluated from the intercept. The values of \(\varepsilon_{L}\) & \(N_{opt} /m^{*}\) estimated via this curves were recorded in Table 2. The obtained values of \(\varepsilon_{L}\) & \(N_{opt} /m^{*}\) were found to increase with increasing the Cu2NiSnS4 film thickness. Moreover, the magnitude of the free carrier concentration \(N_{opt}\) the sprayed Cu2NiSnS4 films was estimated by knowledge the value of the effective mass of the free carriers by Shen et al. [29, 30]. relation \(m^{*} = 0.44 m_{0}\). The values of \(N_{opt}\) were increased with the increase in film thickness.

Fig. 8
figure 8

The plot of \(n^{2}\) versus \(\lambda^{2}\) for the Cu2NiSnS4 thin films

The relaxation time, τ, of the Cu2NiSnS4 thin films was evaluated by the slope of the plot of the ε2 versus λ3 according to the presented relationship [31, 32]:

$$\varepsilon_{2} = \frac{1}{{4\pi^{3} \varepsilon_{0} }}\left( {\frac{{e^{2} }}{{c^{3} }}} \right)\left( {\frac{{N_{opt} }}{{m^{*} }}} \right)\left( {\frac{1}{\tau }} \right)\lambda^{3 }$$
(13)

Figure 9 shows the dependence of imaginary dielectric constant ε2 on λ3 for the Cu2NiSnS4 films. The relaxation times, τ, of the Cu2NiSnS4 thin films was evaluated from the slope of the linear plot and was decreased with increasing the film thickness.

Fig. 9
figure 9

The variation of the imaginary dielectric constant as a function of λ3 for the Cu2NiSnS4 thin films

3.3.3 Optical mobility and optical resistivity

The optical mobility µopt and the optical resistivity ρopt of the Cu2NiSnS4 thin films were evaluated according to the below formulas [33,34,35]:

$$\mu_{opt} = \frac{e\tau }{{m^{*} }}$$
(14)
$$\rho_{opt} = \frac{1}{e}\mu_{opt} N_{opt}$$
(15)

The evaluated values for the optical mobility µopt and the optical resistivity ρopt for the Cu2NiSnS4 thin films were listed in Table 2. It was found that the optical mobility µopt and the optical resistivity ρopt were decreased with increasing the film thickness. This behavior agrees with other previous published data [36, 37]

3.3.4 Optical and electrical conductivity evaluation

Optical conductivity (σ) means the conductance of charge carriers in material due to the optical excitation [38]. The value of optical conductivity depends on the strength of irradiation light. The optical conductivity of the Cu2NiSnS4 thin films has been evaluated by below formula [39]:

$$\sigma_{opt} = \frac{{\alpha {\text{nc}}}}{4\pi }$$
(16)

Figure 10a illustrates the variation of optical conductivity with the photon energy for the sprayed Cu2NiSnS4 thin films. It is observed from this plot that the optical conductivity increases with increasing the thickness and the photon energy; this behaviour attributed to the increase of electrons excitation via the increase of the incident photon energy.

Fig. 10
figure 10

a The dependence of the optical conductivity on the photon energy of the Cu2NiSnS4 thin films, b the electrical conductivity as a function of photon energy for the Cu2NiSnS4 thin film

The electrical conductivity of the sprayed Cu2NiSnS4 thin films has been estimated from the absorption coefficient, \(\alpha\) and the optical conductivity σopt via the presented expression [40]:

$$\sigma_{e} = \frac{{2\lambda \sigma_{opt} }}{\alpha }.$$
(17)

The variation of the electrical conductivity with the photon energy for the Cu2NiSnS4 films was illustrated in Fig. 10b. It is observed from this plot that the magnitudes of the electrical conductivity for the Cu2NiSnS4 thin films increases with increasing the thickness and decreases with increasing the photon energy.

3.4 Nonlinear optical characterization

The evaluation of the nonlinear optical constants of the thin film like third-order nonlinear susceptibility \(\chi^{\left( 3 \right)}\) and nonlinear refractive index \(n_{2}\) is important for several applications like the large capacity communications and optical switching devices. The \(\chi^{\left( 3 \right)}\) of the Cu2NiSnS4 films were calculated by the below expression [41]:

$$\chi^{\left( 3 \right)} = B\left[ {\frac{{n_{0}^{2} - 1}}{4\pi }} \right]^{4}$$
(18)

where \(n_{0}\) represents the values of the static refractive index, B represents a constant factor equal \(1.7 \times 10^{ - 10}\) esu.

The nonlinear refractive index \(n_{2}\) of the Cu2NiSnS4 thin films has been calculated using the presented formula [42]:

$$n_{2} = \frac{{12\pi \chi^{\left( 3 \right)} }}{{n_{0} }}$$
(19)

The magnitudes of both \({{\upchi }}^{\left( 3 \right)}\) and \({\text{n}}_{2}\) for the Cu2NiSnS4 thin films were listed in Table 2. It can be noticed that both parameters were found to increase with increasing the film thickness.

3.5 Photovoltaic properties of the CNSS thin films

The photovoltaic properties have been determined by measuring the dark and illuminated current–voltage (I–V) characteristics for the Ag/n-Si/CNSS/Au heterojunction. Figure 11a illustrates the I-V characteristics of the Ag/n-Si/CNSS/Au heterojunction in the dark and illumination conditions. It is observed from figure that the value of current for CNSS/n-Si heterojunction under illumination is more than the value of current in the dark. This attributed to the light absorbed produces carrier-contributing photocurrent due to the production of electron–hole pairs [43]. Figure 11b displays the J–V plot of Ag/n-Si/CNSS/Au heterojunction with area 0.5 × 0.5 cm2 under illumination of 100 mW/cm2.

Fig. 11
figure 11

a The I–V characteristics of the Ag/n-Si/CNSS/Au heterojunction device in dark and under illumination, b J–V characteristics for Ag/n-Si/CNSS/Au heterojunction under illumination of 100 mW/cm2

The solar efficiency (η) of the CNSS/n-Si heterojunction can be evaluated via the following formula [44]:

$$\eta = \frac{{P_{max} }}{{P_{in} }} = \frac{{FF \times V_{oc} \times J_{sc} }}{{P_{in} }} \times 100\% ,$$
(20)

where \(P_{in}\) is the input energy from the sun and \(P_{max}\) is the output energy from the solar cell.

The device parameters estimated for Ag/n-Si/CNSS/Au heterojunction are VOC= 0.56 V, JSC= 18.96 mAcm−2, Vm= 0.41 V, Jm= 13.83 mAcm−2, FF = 0.53 and efficiency = 11.34%.

4 Conclusion

In this study, spray pyrolysis technique was utilized to deposit Cu2NiSnS4 thin films at different thickness (196, 279, 354 and 461 nm). The XRD analysis of the Cu2NiSnS4 films displays that the as-deposited Cu2NiSnS4 thin films are polycrystalline with a cubic structure. The linear optical properties of the Cu2NiSnS4 thin films have been studied in the spectral range 400-2500 nm. The refractive index of the Cu2NiSnS4 films was found to increase with increasing the thickness. The type of optical transition in the Cu2NiSnS4 thin films was detected to be direct allowed transition. The optoelectrical parameters of the Cu2NiSnS4 films, like optical conductivity, optical mobility, optical resistivity, optical carrier concentration, electrical conductivity and relaxation time were evaluated. The effect of thickness on the non-linear optical parameters has been studied. The Ag/n-Si/CNSS/Au heterojunction has been fabricated using the CNSS film of thickness 461 nm. This device has a solar conversion efficiency of 11.34%.