1 Introduction

Understanding charge carrier dynamics in the material can be crucial for deep comprehension and handling of degradation and operational processes of electronic and optoelectronic devices. Lead halide perovskites, apart from being a semiconductor, additionally show pronounced ionic conductivity [1, 2], which is the result of ionic diffusion, and thus a non-uniform concentration of charged particles in the material. This type of charge transport appeared to be responsible for many unique properties of lead halide perovskite that had been long debated and various explanations had been suggested [3,4,5,6]. For instance, in [7, 8], it was proposed that capacitive anomalies at low and intermediate frequencies can be associated with ionic migration in methylammonium lead bromide single crystals.

Widely reported and discussed [8], hysteresis in perovskite solar cells, despite many various suggestions in the past, [9] at the present moment is mainly associated with slow ionic charge transport [10, 11]. Several studies have reported [13,14,15,16] that halide perovskites containing IV-group B-cations have a discernible ionic contribution to the overall electrical transport characteristics.

Impedance spectroscopy investigation on lead halide perovskite films [17,18,19] revealed the presence of a low-frequency contribution, which was attributed to the migration of slow-moving charged species. Moreover, Warburg-like semi-infinite diffusion at low frequencies was observed in lead halide solar cell-like architecture under light illumination. This behavior is typical for mixed conductors [20], which is indirect evidence of moving species in the material. The ion migration hypothesis was supported by a large amount of evidence from detailed research. Ionic defect conductivity is well known in similar materials like metal oxide perovskites. Moreover, it was discovered that a cubic or orthorhombic shape correlates with high ionic conductivity [21, 22].

Following the aforesaid, charge carrier dynamics in single crystals is of utmost importance, as it corresponds to the intrinsic property of the material that helps to understand various processes and operational mechanisms [23, 24], such as operational and/or temporal stability [25, 26] of optical and electrical devices. In this regard, several great efforts have been done to explain charge carrier dynamics in perovskites [27, 28]; however, some of them were performed using complicated layered structures that can distort diffusion coefficient due to the interfacial influence, while others have limited applicability due to the complicated sample preparation. Moreover, in the case of the measurements provided on thin films, given an extremely long ionic diffusion range, the reduced dimensionality of samples dramatically affects the charge carrier dynamics in the material, requiring careful consideration in quantifying diffusion [29,30,31].

Here, we present a simple and universal approach for diffusion quantification applied to lead halide perovskite single crystals. Single crystals, prepared by inverse temperature crystallization [32], were used as they show exceptionally low intrinsic defect density [33] and generally are easy to synthesize. Nevertheless, we assume that the strategy described below allows direct monitoring and therefore quantifying of the ionic-related conductivity regardless of the presence of electronic current, and is applicable for an arbitrarily mixed conductor possessing ionic diffusion.

The material’s resistive, capacitive, and inductive properties all contribute to its electrical response in the frequency–time domain. By understanding these response characteristics, we can explain various processes that are happening within the material. For this reason, impedance spectroscopy is a powerful tool that measures the electrical response, depending on the material’s electrodynamic properties [34, 35]. By monitoring complex impedance values and phase shifts at various frequencies, this technique allows separating resistive, capacitive, and inductive current contributions by using appropriate mathematical modeling.

2 Methodology

2.1 Warburg-like diffusion model

While the dynamics of ionic processes are much slower than electronic ones, their characteristic features tend to appear at relatively low frequencies. Therefore, by locating characteristic turnover frequency, it is possible to quantify diffusion in the material. The model for diffusion quantification described by Peng et al. [28] fits well, for thin films when the sample thickness is less than the diffusion length. Lead halide perovskites are well known for their exceptionally long diffusion length in the range of micrometers [36]; thus, the above-mentioned model can be successfully applied for the films used for most optoelectronic devices, as their thickness rarely exceeds 0.5 um. However, for thicker films or single crystals, the model is not valid once the thickness of the sample is larger than the diffusion length. Moreover, this technique is barely applicable to measure diffusion coefficients in materials with shorter diffusion lengths, e.g.. organic semiconductors [37].

In this paper, a sandwich structure was used, and the Warburg model of diffusion for flat parallel electrodes can be applied. A Warburg impedance element \(Z_{\mathrm{W}}\) is nearly always associated with a charge-transfer resistance and a double-layer capacitance [38]. Therefore, once Warburg-like characteristics of the impedance response are observed, the diffusion coefficient can be determined. However, it can be difficult to identify a Warburg element in practice due to two main issues: non-ideality and the low-frequency range. In this regard, we denote non-ideal diffusion as ‘Warburg-like diffusion’; later, we discuss why such diffusion is problematic to detect and evaluate.

2.1.1 Diffusion non-ideality

Mathematically, the Warburg element total impedance at equilibrium can be defined by the equation (1) [39], as the magnitude of the Warburg impedance is reversibly proportional to the square root of angular frequency according to:

$$\begin{aligned} Z_{\mathrm{W}}=\sigma \omega ^{-1 / 2}-j \sigma \omega ^{-1 / 2}, \end{aligned}$$
(1)

where Warburg coefficient \(\sigma\) is related to the concentrations and diffusion coefficients of the oxidized and reduced species (\(C_{\mathrm{ox}}\), \(C_{\mathrm{red}}\), \(D_{\mathrm{ox}}\), and \(D_{\mathrm{red}}\), respectively) by:

$$\begin{aligned} \sigma =\frac{\mathrm{R} T}{n^{2} F^{2} A \sqrt{2}}\left( \frac{1}{C_{\mathrm{ox}} D_{\mathrm{ox}}^{1 / 2}}+\frac{1}{C_{\mathrm{red}} D_{\mathrm{red}}^{1 / 2}}\right) , \end{aligned}$$
(2)

where \(\mathrm{R}\) is the gas constant (J/K/mol), T is the temperature (K), n is the number of exchanged electrons, F is the Faraday constant (\(\text {C/mol}\)), A is the area of the electrode (\(\text {m}^{2}/{s}\)), \(C_{\mathrm{ox}}\) and \(C_{\mathrm{red}}\) are the bulk concentrations of electroactive species in their oxidized, resp. reduced form ( \(\text {mol/m}^3\) ), and \(D_{\mathrm{ox}}\), and \(D_{\mathrm{red}}\) are diffusion coefficients of oxidized, resp. reduced species ( \(\text {m}^{2}/{s}\) ).

Thus, the Warburg circuit element is typically associated with the existence of a linear relationship with a slope of –1/2 on the log of a Bode plot (\(\log {|Z|}\) versus \(\log {(\omega )}\)), and it exhibits a 45\(^{\circ }\) phase shift. Moreover, in the case of ideal Warburg behavior, at the frequency range where the phase shift is frequency independent, plotting both real (R) and imaginary (X) part of the impedance Z versus \(1/\omega ^{1/2}\) results in two straight parallel lines where the slope is directly the Warburg coefficient \(\sigma\). Warburg pseudocapacitance (\(C_W\)) cannot be regarded as a pure capacitor, because it is dependent on faradaic charge transfer across the interphase.

However, in the original study [39], Warburg reports smaller phase angles for the different electrodes used in the experiment; unfortunately, at the same time, the frequency range is not reported. A phase angle of 45\(^{\circ }\) is a result of deviation from a semi-infinite diffusion condition. Nevertheless, one can notice that experiments on real-life samples or devices (solar cells, batteries, detectors, etc.) often show non-ideal Warburg-like diffusion with phase angles, more often higher, or sometimes lower than –45\(^{\circ }\). Lower phase angles are associated with, for example, additional leakage currents that make the whole system less capacitive, while higher angles are a result of factors that add additional capacitive behavior, such as extra porosity, which can charge, like a capacitor, but will not be a part of the diffusion component.

In cases where diffusion is expected, such as lead halide perovskites as discussed in this paper, the diffusion model cannot be considered an ideal Warburg model. As a result, the dependencies of R and X on \({1}/{\omega }^{1/2}\) will not be linear or parallel, making it difficult to accurately estimate the diffusion coefficient.

As a result, the presence of diffusion may go undetected because the usual methods for identifying Warburg-like behavior will not be applicable. To detect diffusion in these cases, we propose the following approach:

  • Find a low-frequency interval, where the phase shift is between 0\(^{\circ }\) and –90\(^{\circ }\) and frequency independent.

  • Given the frequency interval meeting the previous condition, find a slope of \(\ln (Z)\) vs \(\ln (\omega )\), which gives a value of a so-called ideality factor k.

  • Plot both R and X vs. \({1}/{\omega ^{k}}\), which we denote as a modified Warburg impedance plot.

In this case, if the plots in the mentioned frequency range are linear, diffusion can be quantified. Note that R and X may not be parallel, which will be discussed later. However, it is worth noting that R and X may not be parallel, which will be discussed further on. As a result, the slopes for the real and imaginary parts of the impedance, \(\sigma _{\mathrm{R}}\) and \(\sigma _{X},\) respectively, are distinct.

Thus, total non-ideal Warburg-like impedance at the equilibrium can be defined by the equation (3):

$$\begin{aligned} Z_{\mathrm{W}}=\sigma _{\mathrm{R}} \omega ^{-k}-j \sigma _{X} \omega ^{-k}, \end{aligned}$$
(3)

where \(\sigma _{\mathrm{R}}\) and \(\sigma _{X}\) are non-ideal Warburg coefficients for resistance (R, \(Z_R\)) and reactance (X, \(Z_X\)), respectively. From equation 3, both real and imaginary parts of the impedance can be derived as follows:

$$\begin{aligned} \ln \left( Z_{\mathrm{R}}\right)&=\ln \left( \sigma _{\mathrm{R}}\right) +k \ln (\omega ), \end{aligned}$$
(4)
$$\begin{aligned} \ln \left( Z_{\mathrm{X}}\right)&=\ln \left( \sigma _{\mathrm{X}}\right) +k \ln (\omega ). \end{aligned}$$
(5)

Thus, by plotting \(\ln {(Z_{\mathrm{R}})}\) or \(\ln {(Z_{X})}\) vs \(\ln {(\omega )}\) (i.e., modified Bode plot for the real and imaginary parts of impedance as a function of angular frequency), the ideality factor k can be easily determined from the slope of this dependence; moreover, from the intersection on the y-axis, the Warburg coefficient \(\sigma\) (representing the ideal case of the Warburg element) can be obtained at the same time.

2.1.2 Diffusion detection frequency

At a constant temperature, the diffusion coefficient mainly depends on the intrinsic characteristics of the material that define the diffusion coefficient [39]. The relation between the diffusion coefficient and the turnout frequency range on the impedance spectrum was previously discussed by Bisquert [40] and Janssen et. al [41]. Therefore, at the impedance spectrum, diffusion may occur in an extremely low-frequency range, micro-Hz or even nano-Hz. In an ideal case, the frequency interval where diffusion occurs should be in a range where the phase shift is negative and frequency independent, -45\(^{\circ }\) as can be derived from equation 1. In non-ideal diffusion conditions, higher phase angles between 0\(^{\circ }\) and -45\(^{\circ }\) (more resistive behavior) may be caused by contact/interface non-idealities leading to charge carrier dispersion, while lower phase angles between -45\(^{\circ }\) and -90\(^{\circ }\) (more capacitive behavior) may occur in porous materials where pores act like capacitors that accumulate charges, but are not part of the diffusion component.

2.1.3 Warburg diffusion element equivalent circuit

As discussed above, using impedance spectroscopy for diffusion detection/quantification can be quite problematic, as the diffusion can appear at an extremely low-frequency range; therefore, measurements would last weeks and even longer, which is practically often not acceptable. However, the power of impedance spectroscopy lies in the ability to extrapolate using equivalent circuit modeling [35, 42]. Fortunately, equivalent circuit for both Warburg diffusion [43,44,45,46] and lead halide perovskites [18, 47,48,49] are well reported and described in the literature. Therefore, it is possible to get a hint on the equivalent circuit of the whole system. In the present paper, to fit impedance response within the frequency domain, an equivalent circuit, depicted in Fig. 1, was used.

Fig. 1
figure 1

Equivalent circuit for the Warburg diffusion element and perovskite single-crystal sandwich structure

The diffusion element was modeled according to the literature [50,51,52,53], and the complex impedance \(Z_{\mathrm{diff}}\) of the electrical circuit including the Warburg diffusion element can be described by equation (6):

$$\begin{aligned} Z_{\mathrm{diff}}=\frac{R_{3}+\frac{(1-\mathrm{j}) \sigma }{\omega ^{0.5}}}{1+\mathrm{j} \omega C_{3}\left[ R_{3}+\frac{(1-\mathrm{j}) \sigma }{\omega ^{0.5}}\right] }, \sigma =\frac{Z_{0}}{\sqrt{2}}, \end{aligned}$$
(6)

where \(\sigma\) is the Warburg coefficient, \(Z_0\) is the magnitude of the impedance at \(\omega = 1 \, \text {rad/s}\), \(\omega\) is the angular frequency, \(\text {j}\) is the imaginary unit, and \(R_3\) and \(C_3\) are the low-frequency resistance and capacitance, respectively, while the full impedance of the whole circuit can be defined as shown in equation (7):

$$\begin{aligned} Z=R_{\mathrm{s}}+\mathrm{j} \omega L_{\mathrm{s}}+\frac{R_{1}}{1+\mathrm{j} \omega R_{1} C_{1}}+\frac{R_{2}}{1+\mathrm{j} \omega R_{2} C_{2}}+Z_{\mathrm{diff}}, \end{aligned}$$
(7)

where \(R_1\) and \(C_1\) are high-frequency resistance and capacitance, \(R_2\) and \(C_2\) are middle-frequency resistance and capacitance, \(Z_{\mathrm{diff}}\) is the low-frequency complex impedance of the circuit consisting of the Warburg element, \(R_{\mathrm{S}}\) is the series resistance, and \(L_{\mathrm{S}}\) is the series inductance. Therefore, using the above-described relations for the full impedance Z, one can fit the impedance response in the frequency domain. Fitting precision for the current measurements is shown in supporting materials.

2.2 How do we quantify diffusion?

Given the above, we propose a protocol for Warburg-like diffusion quantification:

  • Ideality factor k can be extracted correctly only if we know the behavior at very low frequencies, where the diffusion takes place (often nano Hz). To obtain k we need to fit the model to the existing data, using the equivalent circuit given in Fig. 1 defined by the correspondent equation6, resp. 7.

  • Once we fit the model on the measured data, we are able to extrapolate the data down to nano Hz, to detect the potential diffusion frequency range where the phase angle is negative and frequency independent.

  • From the slope of \(\ln {(Z)}\) vs \(\ln {(f)}\) or \(\ln {(\omega )}\) at the frequency range obtained from above, the k coefficient can be obtained. It has to be noted that k can be obtained also from the phase angle, at the diffusion frequency range.

  • The ideal case assumes linear regression on the \(R-X\) plot vs. \(\omega ^{--1/2}\), where both resistance and reactance dependences are straight and parallel with respect to \(\omega ^{--1/2}\). However, in the case of non-ideal Warburg behavior, R and X are not parallel and non-linear, so the coefficient will depend on the frequency, and there will be a significant difference between \(\sigma _{\mathrm{R}}\) and \(\sigma _{X}\) resulting in the interpretation ambiguity once again.

  • However, if we plot \(R-X\) vs. \(\omega ^{--k}\), it linearizes both dependencies and makes \(\sigma _{\mathrm{R}}\) and \(\sigma _{X}\) almost equal.

After deriving \(\sigma _{\mathrm{R}}\) and \(\sigma _{\mathrm{X}}\) values, the diffusion can be easily quantified.

3 Results and discussion

In the ideal case, Warburg diffusion can be modeled using the so-called ‘ideality factor’ \(k = 1/2\). Nevertheless, in ‘real-world’ samples having such a value for k is rather an exception. Usually, one can observe lower values because of any sort of leakage currents, and also higher values can be observed in the case of porous materials. In these cases, the Warburg coefficient \(\sigma\) is problematic to determine, as non-ideality results in a non-linear \(R-X\) plot vs. \({1}/{{\omega }^{0.5}}\). We propose that in such cases, ideal factor 0.5 should be replaced by k factor; therefore, the plot should be represented as \(R-X\) plot vs. \({1}/{{\omega }^{0.5}}\). As an example, let us analyze the data obtained from the \(\mathrm{MAPbI}_{3}\) perovskite monocrystal sandwich structure. In the first step, the diffusion frequency range has to be located. As we discussed above, in this range, the phase angle should be negative and frequency independent (Fig. 2b), the slope of \(\ln {(Z)}\) vs \(\ln {(\omega )}\) in this frequency range (Fig. 2a) gives us the ideality factor \(k = 0.21\), i.e,. non-ideal Warburg behavior, and phase shift corresponds to approx. 21\(^{\circ }\) at low frequencies.

Fig. 2
figure 2

A The modified Bode plot, points for real measured data, solid lines for modeled data up to 1 \(\upmu\)Hz, dashed lines for interpolation of data in low frequencies; B a phase shift between the real and imaginary part of Z plotted against \(\ln {(\omega )}\) with a line indicating the area where the phase shift is independent of frequency; C a plot of the non-ideal Warburg-like impedance; D the modified plot of the non-ideal Warburg-like impedance using coefficient k for ideal or non-ideal behavior

After introducing k = 0.21, one can obtain both \(\sigma _{\mathrm{R}}\) and \(\sigma _{X}\) modified Warburg constants. By the way, as described above, we can get the Warburg constant \(\omega\) directly from the Bode plot according to equations (4) and (5). To quantify the Warburg coefficient, we finally used the mean value of \(\sigma _{\mathrm{R}}\) and \(\sigma _{X}\). As a demonstration, for \(\mathrm{MAPbI}_{3}\) perovskite single crystal with ideality factor equal to 0.21, the calculated Warburg coefficient (avg value) from the modified \(R-X\) plot vs. \(\omega ^{--0.21}\) is approximately \(\sigma _k = 2.29\times 10^{9} /{s^{0.21}}\) (\(\sigma _{\mathrm{R}}=3.43\times 10^{9} /{s^{0.21}}\), \(\sigma _{X} ={1.14}\times {10^{9}} /{s^{0.21}})\). The determined Warburg coefficient (average value) from the modified Bode plot is approx. \(\sigma = 2.49\times 10^{9} /{s^{0.5}}\) (\(\sigma _{\mathrm{R}} =3.73\times 10^{9} /{s^{0.5}}\), \(\sigma _{X}= 1.24\times 10^{9} /{s^{0.5}}\)).

To find a correlation between an ideal and a non-ideal Warburg behavior, we tested a large auto-generated set of models (for more details see Supporting Information) with the equivalent circuit described above in Fig. 1. A general trend between an ideal and a non-ideal Warburg component that follows a quadratic function, empirically defined by an equation \(y = 1.647x^{2} -- 1.568x + 1.373\), is shown in Fig. 3a. Due to this relationship, the ideal Warburg element (and thus the final Warburg coefficient) can be easily estimated even if we have non-ideal Warburg behavior in our system. However, what arises here is the Warburg coefficient unit, due to the different powers/roots for angular frequency in the graphs. In this regard, it is necessary to introduce a new correction factor \(\delta _{\mathrm{corr}}=\sigma _{0.5} / \sigma _{\mathrm{k}}\left( \mathrm{rad}^{0.5-k}\,\mathrm{s}^{k-0.5}\right)\), which adjusts the finite unit of the Warburg coefficient (especially for purposes of non-ideal Warburg behavior) so that it is correct for evaluating the diffusion coefficient with its unit \(\mathrm{{m^{2}}/{s}}\).

Fig. 3
figure 3

A Correlation between an ideal and a non-ideal Warburg component. B The Warburg coefficients for a Warburg diffusion element equivalent circuit (\(R_{3}=5 \mathrm{G} \Omega\), \(C_{3}=1 \mathrm{nF}\), \(Z_{\mathrm{W}}=1 \mathrm{G} \Omega\)) with variable ideality factors and its slope which follows the standard value for an ideal Warburg component

As an example, according to these findings, the above-determined Warburg coefficient from the modified \(R-X\) plot (\(\sigma _{\mathrm{k}}=2.29 \times 10^{9} \Omega / \mathrm{s}^{0.21}\) for non-ideal Warburg behavior with the ideality factor equal to 0.21) has to be multiplied by a correction factor of 1.12, and after that, the ‘ideal’ Warburg coefficient equals \(\sigma =2.57 \times 10^{9} \Omega / \mathrm{s}^{0.5}\). Here, we finally used the mean value of the determined Warburg constants (modified Bode plot, modified \(R-X\) plot) to quantify the diffusion. The final obtained Warburg constant for \(\mathrm{MAPbI}_{3}\) perovskite single crystal with an ideality factor of 0.21 is thus equal to \(\sigma =2.53 \times 10^{9} \Omega / \mathrm{s}^{0.5}\). Once we are able to calculate the Warburg coefficient as described above, the diffusion coefficient can then be easily quantified according to the modified equation (2) as follows:

$$\begin{aligned} D=\left( \frac{R T}{\sigma c_{C V} n^{2} F^{2} A \sqrt{2}}\right) ^{2} =\left( \frac{R T}{\sigma _{\mathrm{k}} \delta _{\mathrm{corr}} c_{C V} n^{2} F^{2} A \sqrt{2}}\right) ^{2}. \end{aligned}$$
(8)

Note that other parameters from the equation, such as the dielectric constant of the material used and doping (defect) density calculated from Mott–Schottky analysis, were determined by impedance spectroscopy [28]. Final parameters obtained for all the measured crystals of different types (\(\mathrm{Cl^{-}, Br^{-}, I^{-}}\)) are summarized in Table S1, Table S2, and Table S3 (see Supplementary Material). Consequently, we determined the diffusion coefficients for all three types of macroscopic single crystals: \(D=(2.68 \pm 1.94) \times 10^{-8}\,\mathrm{cm}^{2} / \mathrm{s}\) for \(\mathrm{MAPbCl}_{3},(1.12 \pm 0.61) \times 10^{-6}\,\mathrm{cm}^{2} / \mathrm{s}\) for \(\mathrm{MAPbBr}_{3}\) and \((3.63 \pm 2.36) \times 10^{-9}\,\mathrm{cm}^{2} / \mathrm{s}\) for \(\mathrm{MAPbl}_{3}\). Comparing these results with the ones published in the literature, we have to mention that the reported diffusion coefficient estimation differs vastly depending upon the measurement technique and sample preparation [54,55,56,57,58,59,60]. The overall diffusion coefficients for \(\mathrm{MAPbI}_{3}\) are comparable with the ones obtained by transient ion-drift measurements in thin films [55,56,57]. At the same time, both much higher and much lower values can be obtained depending on the method of measurements and sample preparation procedure. Transient absorption experiments using ultrafast microscopy [61] usually result in higher values for a diffusion coefficient, as it takes into account a contribution from both electrons and holes, while photoluminescence-based [27, 62,63,64] and electrical [28] measurements usually underestimate diffusion coefficient and diffusion length. Moreover, in the case of electrical measurements of lead halide perovskites, the presence of moisture and ambient conditions play a major role and, therefore, measurements obtained using non-encapsulated samples can differ radically.

4 Conclusion

In this study, we present a universal approach to quantify diffusion. The method is applied to lead halide perovskites, a material with mixed ionic–electronic conductivity that is widely used in electronics and optics. Although diffusion quantification using impedance spectroscopy has been previously described, there are several challenges that can arise in obtaining well-defined diffusion coefficients for the material, such as a material thickness larger than the diffusion length, non-idealities present in real-world systems, or a low-frequency range of the diffusion that makes it difficult to accurately locate the turnover frequency on the Nyquist plot. We describe how to overcome these challenges and accurately quantify the diffusion coefficient. It is worth noting that, while the described approach is specific to lead halide perovskites, it is also applicable to any other type of material.

5 Experimental

In this study, we applied our universal approach to three types of lead halide perovskite monocrystals: \(\mathrm{MAPbCl}{3}\), \(\mathrm{MAPbBr}{3}\), and \(\mathrm{MAPbI}_{3}\) synthesized by inverse temperature crystallization [32]. All three types of crystals, with various thicknesses, were analyzed to obtain reliable results and demonstrate the reproducibility of the method. The thickness of the crystals (the distance between the two electrodes) was in the range of millimeters, which was greater than the diffusion lengths in all cases. Additional information about the crystal synthesis and measurement equipment can be found in the supplementary information section.