1 Introduction

Chalcogenide ternary films of indium and silver have been reported with applications in optoelectronics and electronics devices [13]. Additionally, photovoltaic structure using AgIn5S8 has been obtained [2]. Furthermore, ternary AgIn5Se8 compound is an appropriate candidate for thermoelectric materials with many applications in the conversion of thermal energy to electrical power [4, 5]. Moreover, metal chalcogenide semiconductors are promising as visible-light-driven photocatalysts. In view of this fact, AgIn5S8 displays high activity for the evolution of hydrogen [6].

AgIn5S8 has been obtained by different techniques such as thermal evaporation in one stage using AgIn5S8 single crystals as a source material [1], or two stages using thermal evaporation of precursor metals and sulfurization [7], microwave hydrothermal synthesis [8], pulsed laser deposition [9], growth solution techniques as chemical deposition [10, 11], one-pot synthesis [12] and low-temperature water bath deposition process to obtain AgIn5S8 nanocomposite [13]. AgIn5Se8 has been synthetized from the elementary components at 1200 K in a quartz evacuated ampoule and subsequently annealed at 820 K for 300 h [14]. Alloys of AgIn5S8−xSex have been prepared by sintering stoichiometric mixtures of the binary compounds Ag2S and Ag2Se disposed at 773 K from the elements; and In2S3 and In2Se3 disposed at 1073 K from the elements, in evacuated and sealed silica ampoules at 1073 K and heated for 72 h at 1073 K [15]. Yiyun et al. [4] obtained a single phase of AgIn5Se8 by spark plasma sintering technique. Among the above mentioned methods, chemical bath deposition (CBD) is well known as a viable process to obtain large area and high quality semiconductor thin films with the advantages of simply, low cost and low energy consumption [16].

AgIn5S8 has been reported with n-type electrical conductivity and direct band gap of about 1.7 eV [17]. Vacuum evaporated AgIn5S8 thin films annealed in nitrogen at 450 and 600 K display energy band gap of 1.74 and 1.78 eV, respectively [18]. Qasrawi [19] obtained polycrystalline cubic AgIn5S8 samples, which exhibit direct allowed transitions and band gap energy of 1.78 eV. Photoconductivity of the as-grown and nitrogen heat-treated AgIn5S8 films displays two recombination centers located at 66 and 16 meV [20]. Effects of temperature on the fundamental absorption edge produce a shift of the energy band gap from 1.78 to 1.73 eV as temperature boosts from 300 to 450 K. What is more, the fundamental absorption edge exhibited a temperature coefficient of −3.56 × 10−4 eV/K [21]. The carrier density of thermally deposited AgIn5S8 thin films increases from 1.74 × 1016 to 2.80 × 1019 cm−3 as the annealing temperature is raised from 350 to 450 K; and the Hall mobility decreases from a value of 16.7 cm2 V−1 s−1 at 350 K to 6.9 cm2 V−1 s−1 at 450 K [22]. Also, conductivity activation energies of 155 and 78 meV, in the temperature regions of 230–300 K and 90–220 K, respectively; and a density of localized states of 1.17 × 1020 cm−3 eV−1, were reported [23]. On the other hand, previous work on ternary AgIn5Se8 compound and AgIn5S8–AgIn5Se8 system have been focused in structural and compositional analysis [4, 14, 15]. Seebeck coefficients for spark plasma sintering AgIn5Se8 are negative, which indicates that the majority of charge carriers are electrons (n-type) [5]. In addition to this, single phase of AgIn5Se8 displays a band gap of 1.11 eV [4, 5], whereas 1.22 eV is reported for Ag3In5Se9 [17].

For this study, we have synthesized AgIn5(S/Se)8 thin films on corning glass substrates using a two stage process which consist on sequential chemical deposition of In2S3 and Ag2Se films, followed by thermal annealing in nitrogen atmosphere at 350 and 400 °C. Thin film formation was determined by X-ray diffraction (XRD). Compositional, optical and electrical properties of such thin films are also analyzed in this work.

2 Experimental details

2.1 Thin films deposition

2.1.1 In2S3 thin films

In2S3 thin films were obtained by CBD following the method previously reported by Lugo et al. [13] but changing the indium source. Reaction solution in this work was carried out using the following chemical reagents in the order described here: 10 mL of InCl3 0.1 M, 2 mL of CH3COOH 0.1 M, 16 mL of CH3CSNH2 1 M, and water to complete a volume of 100 mL. Glass substrates (Corning, 25 mm × 75 mm) were placed vertically into the beaker. Chemical deposition was carried out at 35 °C for 20 h, with this conditions the thickness of the films is 240 nm.

2.1.2 Ag2Se thin films

Ag2Se thin films were prepared using a reaction solution consisted on dissolving 100 mg of AgNO3 in 10 mL water. Then 4 mL of 7.5 M of ammonia (aq.), 81 mL of deionized water and 5 mL of 0.1 M solution of Na2SeSO3 were mixed as described in [24]. Ag2Se thin films were deposited at 10 °C during 30 min, the thickness of the films is (40 ± 3) nm.

2.1.3 In2S3–Ag2Se stacking process

In2S3–Ag2Se stacks were obtained by using sequential chemical bath of In2S3 and Ag2Se. Ag2Se thin films were deposited onto previously grown In2S3 layers. First, In2S3 thin films were grown on glass substrate as stated before. Subsequently, In2S3 films were immersed vertically into the beaker containing the solution to produce Ag2Se thin films. The Ag2Se deposition was carried out under the condition (time and temperature) mentioned above. Hence, In2S3–Ag2Se stacks were obtained.

2.2 Heat treatment

The In2S3–Ag2Se stack films were enveloped in Al foil and, subsequently, annealed in 1 Torr nitrogen atmosphere at 350 and 400 °C during 1 h, using a vacuum oven MTI-VBF-1200X. Film thickness measurements for In2S3–Ag2Se thin films after heating resulted as (270 ± 14) nm.

3 Characterization

X-ray diffraction (XRD) patterns were recorded on a Rigaku Ultima IV diffractometer with Cu-Kα (1.5406 Å) radiation making grazing incidence of 1.0° with the sample plane. Such grazing incidence XRD (GIXRD) study helps to assess the structure and composition of the film along its thickness. An Oxford X-act energy dispersive X-ray spectrum (EDX) analyzer attached to a Hitachi-SEM SU1510 is used to analyze the chemical composition of the films. Optical transmittance (T) and specular reflectance (R) spectra of the films were recorded for film-side incidence with air and a front aluminized mirror as references on a UV–VIS–NIR V-670 JASCO spectrophotometer. The measured T and R data were used to evaluate the optical absorption coefficients (α) by considering multiple reflections within the thin film [25]. Pairs of silver-print electrodes 5 mm long at 5 mm separation applied on the film surface and dried at 60 °C for 30 min are used as contacts for the electrical characterization of the films. Keithley 230 programmable voltage source and Keithley 619 electrometer were utilized to study the photocurrent response of the films produced to different heat treatments. Each sample was stabilized in the dark in the measurement chamber. With a bias (V) of 100 V across the electrodes (established previously as ohmic region), the current (I) in the sample was recorded at each 0.5 s for the first 20 s in the dark, the next 20 s under illumination and for the last 20 s after switching off the illumination. A tungsten-halogen ELH lamp provides an intensity of 1000 W/m2 on the plane of the film. Electrical conductivity (σ) of the material of the different films is estimated from the current and voltage values, the electrode geometry and the film thickness. Films thickness was measured using an XP-200 Ambios Technology perfilometer. The Seebeck voltage was measured by a microvoltmeter/Scanning thermometer Keithley 740, and the DC Power supply with two Peltier elements to establish a difference of temperature. This measurement was used to determined conductivity type of the films.

4 Results and discussion

4.1 Structural properties

Figure 1 shows XRD patterns of In2S3 thin films annealed in N2 at (a) 350 °C and (b) 400 °C. We have observed in both films that XRD peaks remain in the same position as that in the standard powder pattern JCPDS- 01074-7284 corresponding to In2S3 of tetragonal structure with lattice parameter values a = 7.6172 Ǻ; b = 7.6172 Ǻ; and c = 32.3307 Ǻ, so the increment in temperature from 350 to 400 °C does not suggest any structural transition.

Fig. 1
figure 1

XRD patters of In2S3 thin films heated at 350 and 400 °C

Thermal annealing of In2S3–Ag2Se stack films at 350 and 400 °C during 1 h produces a solid state reaction with the formation of the AgIn5(S/Se)8 thin film as XRD patterns in Fig. 2a, b shown. The diffractogram shows XRD peaks matching well with the standard pattern of cubic AgIn5S8 with cell parameter a = 10.825 Ǻ (JCPDS- 26-1477) and tetragonal AgIn5Se8 with cell parameter a = 5.7740 Ǻ, b = 5.7740 Ǻ and c = 11.6100 Ǻ (JCPDS 26-1471). Diffraction peaks at 2θ = 14.2°, 23.2°, 33.1°, 44.1° and 47.7° match with (111), (220), (311), (400), (511) and (440) planes from AgIn5S8 standard, respectively. On the other hand, the peaks at 2θ = 26.83, 38.1 and 44.37 match with (112), (202) and (220) planes from AgIn5Se8 standard, respectively. Peak at 2θ = 24.9° is associated with (110) plane of In2Se3 (JCPDS- 00-023-0294). XRD peaks remain unchanged with the increase in annealing temperature and, hence, we established 350 °C as a proper temperature to obtain the ternary compound. To estimate the value of x in the AgIn2S8−xSex alloy, we follow a method previously reported in Ref. [26] in which it is assumed a linear variation of inter-planar spacing d for the solid solution Sb2SxSe3−x. This leads to the designation of the thin film in the cell structure as AgIn5S7.8Se0.2.

Fig. 2
figure 2

XRD patters of In2S3–Ag2Se stack films heated at 350 and 400 °C

4.2 Chemical composition

The characteristic peaks of In-Lα at 3.286 keV and S-Kα at 2.307 keV; or In-Lα at 3.286 keV, Ag-Lα at 2.98 keV, Se-Lα at 1.379 keV and S-Kα at 2.307 keV are identified in the EDX spectra of In2S3 films or In2S3–Ag2Se stack films annealed at 350 °C, along with Si-Kα at 1.74 keV arising from the substrate. Figure 3 shows the EDX spectrum of AgIn5(S/Se)8 thin film. The composition of In2S3 films correspond to weight percentage of: In = 72.9 % and S = 27.1 %. This result indicated that the composition of the film is close to the stoichiometric formula of In2S3, where In:S ratio is 2:3. Thin films of AgIn5(S/Se)8 present the following results: Ag = 16.4 %, In = 59.9 %, S = 20.6 % and Se = 2.9 %. Such S-rich films are in agreement with the results reported by Haeuseler and coworker on the system AgIn5S8−xSex (0 < x < 8), where 11 different compositions were found [15]. Thus, according to XRD and EDX results, we propose that the solid state reaction produced by the thermal annealing of In2S3–Ag2Se stack films results on the formation of AgIn5S7.8Se0.2 alloy thin films. EDX analyses show that chemical composition is homogeny along the samples. The errors in the data were evaluated to be about 5 %.

Fig. 3
figure 3

EDX spectrum of In2S3–Ag2Se thin films heated at 350 °C

4.3 Optical properties

Optical properties were recorded in the range between 250 and 2500 nm. Figure 4 illustrates the optical transmittance (T) and the specular reflectance (R) for In2S3 and In2S3–Ag2Se thin films heated at 350 °C.

Fig. 4
figure 4

Transmittance (T) and reflectance (R) spectra for In2S3 and AgIn5(S/Se)8 samples after heating at 350 °C

Optical absorption coefficient (α) as a function of the photon energy (hν) was estimated from the transmittance (T) and reflectance (R) spectra data; and film thickness (d) measurements according to the following equation [25]:

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

The band gap (E g ) was calculated using the relationship:

$$ \alpha h\nu = A(h\nu - Eg)^{n} $$
(2)

were A is a constant as a function of the transition probability.

Plot of (αhν) 2/3 versus was used to calculate the value of energy band gap by adjusting the linear part of the curve, as shown in Fig. 5a. Straight line region in this plot indicates that the absorption edge corresponds to a direct forbidden electronic transition. The value of E g was obtained when the adjusting line tends to zero. For In2S3 layer heated at 350 °C E g  = (2.4 ± 0.4) eV, which corresponds to that value reported in literature for In2S3 thin films [27].

Fig. 5
figure 5

Optical band gap for a In2S3 and b AgIn5(S/Se)8 thin films

Plot of (αhν) 2/3 versus is given in Fig. 5b for AgIn5(S/Se)8 thin film. The energy band gap E g was calculated according to the Eq. (2). The linearity of plot (αhν)2/3 versus indicates that the absorption edge corresponds to a direct forbidden transition. The E g value obtained was (1.75 ± 0.6) eV. Only values for the AgIn5S8 (1.74–1.78 eV) and AgIn5Se8 (1.1 eV) has been reported previously [4, 5, 11, 18, 19]. We suggest that the band gap value is close to the AgIn5S8 because the small quantity of selenium; in agreement with XRD and EDX results. The values of the optical absorption coefficient, α > 104 cm−1, in addition to the optical band gap value allow us to consider the AgIn5(S/Se)8 film as a promising candidate for solar cell applications.

4.4 Electrical properties

Photo-response measurements of In2S3 and In2S3–Ag2Se thin films annealed at 350 °C in N2 are given in Fig. 6. The electrical conductivity of In2S3 thin films heating at 350 °C is σdark = 3.7 × 10−8 (Ω cm)−1, when the film is heated at 400 °C the conductivity is at the same order of magnitude as shown in Fig. 6a, this result is in agreement with the value reported previously for thin films by chemical deposition [28]. The In2S3–Ag2Se thin films annealing at 350 °C exhibit a value of σdark = 6.6 × 10−6 (Ω cm)−1 that is very similar to the stack films heating at 400 °C, as observed in Fig. 6b. This value is more than two orders of magnitude higher than In2S3 thin films, as expected, due to silver and selenide incorporation in the formation of AgIn5(S/Se)8. Thin films of In2S3 heated at 350 °C shows a value of photo-conductivity (σph) of 6.8 × 10−8 (Ω cm)−1. Additionally, AgIn5(S/Se)8 presents a value of σph of 2.5 × 10−4 (Ω cm)−1, two orders of magnitude higher than in the dark. The errors in the data were evaluated to be 2–5 %.

Fig. 6
figure 6

Photo-response measurements of In2S3 and In2S3–Ag2Se thin films heated at a 350 °C and b 400 °C

The thermoelectric potential (V) at the cold end with respect to the hot end of the semiconductor subjected to a temperature difference ΔT was measured. Figure 7 shows the result for AgIn5(S/Se)8 alloy produced from In2S3–Ag2Se stack films heated at 400 °C. The value of Seebeck coefficient is +(18.7 ± 0.9) µV/K, so that suggesting that the film is slightly of p-type conductivityMaterials can be obtained either p-type or n-type, depending on growth conditions, stoichiometry and post-deposition thermal annealing. For instance, AgInSe2 shows both n-type and p-type conductivity depending on particular growth conditions [29]. AgInSe2 p-type films have been obtained by post-deposition thermal annealing under selenium atmosphere [30]. On the other hand, AgIn5S8 and AgIn5Se8 have been reported in the literature with n-type conductivity [5, 17]. In this work we reported a new methodology for the formation of AgIn5(S/Se)8 with p-type conductivity. We suggest that the incorporation of selenium in AgIn5(S/Se)8 samples might be seen as a similar process to the post-deposition annealing under Se pressure in AgInSe2 films [30]. The incorporation of selenium may lead to the formation of interstitial intrinsic defects that contribute to the p-type conductivity. P-type conductivity is desired for the absorber layer because of the heterojunction partner availability and the longer minority carrier diffusion length of electrons.

Fig. 7
figure 7

Thermoelectric potential (V) versus temperature difference (ΔT) of AgIn5(S/Se)8 produced from In2S3–Ag2Se stack films heated at 400 °C

5 Conclusions

The films of AgIn5(S/Se)8 were obtained on glass substrates by annealing at 350–400 °C in nitrogen atmosphere chemically deposited In2S3–Ag2Se stack films. The formation of the AgIn5S7.8Se0.2 has been established on the basis of XRD and EDX results. The films have direct optical band gap of 1.75 eV and optical absorption coefficient of 104 cm−1. Samples are photoconductive with p-type electrical conductivity (in dark) of 6.6 × 10−6 (Ω cm)−1. The Seebeck effect shows a value of +18 µV/K. The optical band gap, electrical conductivity and the photoconductivity of these materials fulfil the basic requirements for their integration into photovoltaic structures.