1 Introduction

Transition metal oxides, such as ZnO nanoparticles, have numerous properties, including high stability, non-toxicity, safety, ease of preparation, n-type semiconductor, and low cost [1]. ZnO nanoparticles have various applications, such as piezoelectric devices, gas sensors, photocatalysts, biosensors, anti-UV additives, electrodes, and heavy metal removal [2,3,4,5]. Due to its high surface area, which can efficiently adsorb HM, ZnO exhibits a significant capability to remove heavy metals from water [6].

Doping ZnO changes its properties, including its electronic, optical, magnetic, and morphology properties, as well as its applications [3, 7]. Doping ZnO with rare earth elements enhances its characteristics due to the tiny crystal field splitting, electronic structure, and partially filled 4f orbitals of rare earth metals [8].

Heavy metals (HM) are elements that are characterized by a large density greater than 6 g/cm3 and have a high toxic effect even in a small amount [9]. Due to their toxicity, lack of biodegradability, and detrimental effects on both people and plants. HM such as Cr6+, Ni2+, and Pb2+ in water constitute a significant environmental threat [10, 11]. There are many sources of Cd2+, such as paints, alloying, batteries, electroplating, fertilizers, and metal smelting [12]. The harmful effects of Cd2+ are bone tumors, renal dysfunction, high blood pressure, and pulmonary problems [13].

The water treatment can be performed by different techniques, such as membrane technologies [14], photocatalytic degradation [15], the precipitation method [16], oxidation–reduction [17], and flotation [18]. The adsorption process is the transition of the heavy metals (adsorbate) from the aqueous phase to nanoparticles (adsorbent), which form an atomic or molecular layer on the adsorbent [19, 20]. The purification of water using the adsorption method is more effective due to its simplicity, cost-effectiveness, and no sludge. There are various factors that affect the adsorption process, such as the pH value of the solution, contact time, concentration of HM, and magnetic behavior of the adsorbent. The magnetic nanoparticles can be easily separated from the solution after adsorption using an external magnet.

Many studies have shown that the presence of Ho3+ and Gd3+ ions in nanoparticles increases the efficiency of HM removal from water [21, 22]. These are due to the increased surface area to volume ratio and the increased number of active sites on the surface of the adsorbent. M.M. Arman [21] reported that the Sm0.95Ho0.05FeO3 has a good removal efficiency of lead ions from water, with the removal capacity reaching 99% at pH = 8. E.E. Ateia et al. [22] prepared GdFe0.8Co0.2O3, which had a 98% adsorption efficiency of lead from water at pH 5. In order to increase the removal efficiency of the ZnO, both Ho3+ and Gd3+ ions were chosen as dopants in ZnO nanoparticles.

The current study shows the influence of doping ZnO with RE. Using the citrate auto-combustion technique, the samples ZnO, Zn0.97Gd0.03O, and Zn0.97Ho0.03O were synthesized in a single-phase hexagonal structure. This study aimed to determine how the doping of Gd3+ and Ho3+ ions affected the structure, morphology, and physical properties of ZnO, in addition to evaluating the effects of Gd3+ and Ho3+-doping ZnO on the adsorption of Cd2+ from water.

2 Experimental techniques

2.1 Materials used

All of the chemicals used to create ZnO, Zn0.97Gd0.03O, and Zn0.97Ho0.03O are of annular purity (purity 99.9%). The zinc nitrate, Ho nitrate, Gd nitrate, and citric acid are purchased from Sigma Aldrich Company.

2.2 The preparation of nanosamples

ZnO, Zn0.97Gd0.03O, and Zn0.97Ho0.03O were synthesized using the citrate combustion technique [23]. The stoichiometric ratios of Zn nitrate, Ho nitrate, Gd nitrate, and citric acid were dissolved in distilled water. The nitrate to citrate ratio is 1:1. Using the ammonia solution, the pH of the solution was adjusted to 7. The samples were stirred and heated at 80 °C for 1 h, then heated at 200 °C till the liquid phase evaporated and the ash was produced. The ash was ground for an hour using an agate mortar, and the resulting powder was calcined for three hours at 550 °C using a rate of heating and cooling of 5 °C/min.

2.3 Characterization and measurement of samples

Phase identification was investigated, and the lattice size and lattice parameters were determined using XRD (a Bruker Advance D8 diffractometer). The morphology of the materials was demonstrated using FESEM (model Quanta 250). The magnetization of the synthesized nanoparticles was investigated via VSM (9600-1 LDJ, USA). Using a UV/visible/NIR spectrophotometer (JASCO Corp., V-570), the optical transition type and optical band gap values for the materials were determined.

2.4 The removal of Cd2+ ions

A standard solution of Cd2+ (50 ppm) was prepared to study the removal of these ions from water. In a beaker with 10 mL of the standard solution, 0.02 g of the sample was added. Ammonia or nitric acid solutions are used to adjust the solution’s pH. The solution was placed on an electric shaker (Orbital Shaker SO1) at room temperature and stirred at 180 rpm for one hour. 10 mL of the solution was filtered via a syringe filter. Inductively coupled plasma (ICP, spectrometry, Prodigy7) was used to calculate the number of Cd2+ ions in the aqueous medium.

Equations (1) and (2) were used to compute the Cd2+ efficiency (\(\eta\)) and the adsorption capacity (q) [21].

$$\eta =\frac{{C}_{i}-{C}_{e}}{{C}_{i}} \times 100$$
(1)
$$q=\frac{\left({C}_{i}-{C}_{e}\right)V}{m},$$
(2)

where V is the volume of the Cd2+ solution, m is the mass of ZnO, and Ce and Ci are the final and initial concentrations of the Cd2+ solution, respectively.

3 Results and discussion

XRD results proved that the synthesized samples have a one-phase hexagonal structure and were indexed with ICDD card 00-036-1451 as shown in Fig. 1. The main peak was indexed at 2θ = 36.3° for the lattice peak 101. According to the following equation, the lattice parameters of the investigated nanoparticles were calculated:

$$\frac{1}{{d}^{2}}= \left[\frac{4}{3}({h}^{2} + {k}^{2} + hk) + {l}^{2} {\left(\frac{a}{c}\right)}^{2}\right]\frac{1}{{a}^{2}},$$
(3)

where h, k, and l are the Miller indices, while d is the distance between the planes. Table 1 contains the lattice constants a, b, and c. The unit cell volume (V), and the theoretical density (Dx) were calculated according to the following equations:

$$\mathrm{V}\hspace{0.17em}=\hspace{0.17em}{\mathrm{a}}^{2}\mathrm{c}$$
(4)
$$\mathrm{Dx }= \frac{ZM}{{N}_{A}V},$$
(5)

where M refers to the molecular weight, Z (Z = 2) denotes the molecule's number in a unit cell and NA is Avogadro’s number. The crystallite size (D) of rare earth-doped ZnO was calculated using the well-known Scherer's equation [24].

$$D=\frac{0.94\lambda }{\beta \, \mathit{cos}\, \theta },$$
(6)

where λ denotes the X-ray wavelength and β refers to the full width at half the maximum intensity. The crystallite size (D) values for the samples ZnO, Zn0.97Ho0.03O, and Zn0.97Gd0.03O are 12.48 nm, 51.18 nm, and 60.20 nm, respectively. The replacement of Zn ions with small ionic radii (rZn ~ 0.74 Å) by Gd3+ and Ho3+ with high ionic radii (rGd ~ 0.938 Å and rHo ~ 0.995 Å) resulted in an increase in the D due to rare earth doping [25]. The samples defects are indicated by dislocated density (δ) which was estimated via the following equation and listed in Table 1 [26, 27].

Fig. 1
figure 1

XRD of the prepared nanoparticles

Table 1 The lattice parameters, theoretical density (Dx), crystallite size (D), dislocated density (δ) and bond length (L) for the samples
$$\updelta =\frac{1}{{\mathrm{D}}^{2}}$$
(7)

The Zn–O bond length (L) of samples was altered with the RE doping due to changes in the lattice parameters. The dependence of L on the RE elements can be determined using Eq. (8) [28].

$$L= \sqrt{\left[\frac{{a}^{3}}{3}+{\left( \frac{1}{2}-u\right)}^{2} {c}^{2}\right],}$$
(8)

where u is the potential parameter related to the hexagonal structure, which can be calculated from Eq. (9) [28].

$$u= \frac{{a}^{2}}{3{c}^{2}}+0.25$$
(9)

Table 1 contains values of L for the synthesized nanoparticles, which decreased for the Zn0.97Gd0.03O and Zn0.97Ho0.03O owing to the incorporation of Gd and Ho in the zinc oxide lattice, where the ionic radii of RE are greater than those of ZnO, resulting in a reduction in the bond length of Zn–O [29].

The samples morphology was investigated using FESEM images. Figure 2 shows that the ZnO, Zn0.97Gd0.03O, and Zn0.97Ho0.03O samples have irregular morphological structures. The small particles were agglomerated, forming large clusters. There is a slight variation in the agglomeration degree between the samples. The agglomeration occurs as a result of the absence of a surfactant agent during the preparation [30].

Fig. 2
figure 2

FESEM images for ZnO, Zn0.97Gd0.03O, and Zn0.97Ho0.03O

The hysteresis loops of the ZnO, Zn0.97Gd0.03O, and Zn0.97Ho0.03O samples are illustrated in Fig. 3. The hysteresis loops demonstrate the paramagnetic properties of the prepared nanoparticles. In the inset of Fig. 3, Hc and Mr for ZnO, Zn0.97Gd0.03O, and Zn0.97Ho0.03O are shown. The values of Mm, Mr, Hc, and the squareness ratio are reported in Table 2. The anisotropy constant (K) of the investigated samples was calculated using Eq. (10).

Fig. 3
figure 3

The magnetic hysteresis loops of the samples

Table 2 The remanence magnetization (Mr), the maximum magnetization (Mm), the coercivity (Hc), the squareness ratio, and the anisotropy constant (K) for ZnO and RE-doped samples
$$K=\frac{{H}_{C}\times {M}_{S}}{0.96}$$
(10)

The bulk of ZnO is characterized by diamagnetic properties [31, 32]. Many researchers claim that ZnO has paramagnetic [33] or weak ferromagnetic properties at the nanoscale [34]. In a very small dimension of ZnO, the magnetic properties originated for many reasons, such as:

  1. 1.

    the point defects in zinc oxide, like the Zn interstitials and vacancies of oxygen ions [34,35,36].

  2. 2.

    the presence of more than one phase in the ZnO matrix.

The investigated samples were prepared in a single phase, according to the XRD data, so the last reason does not apply to the investigated samples. Because of the increased particle size, the magnetization of RE-doped samples is small, resulting in a decrease in magnetic behavior.

The band gap (Eg) can be determined using the Kubelka–Munk (K–M) equation: [37]

$$\mathrm{F }\left(\mathrm{R}\right)= \frac{{\left(1-R\right)}^{2}}{2R},$$
(11)

where F (R) is the K–M function related to the extinction coefficient (α) and R refers to the reflectance.

Tauc’s equation [38, 39] can be used to calculate the type of optical transition and the Eg values.

$${(\mathrm{F}(\mathrm{R})\,\mathrm{ h\upsilon }) }^{2}\approx \mathrm{ A }{\left(\mathrm{h\upsilon }- {\mathrm{E}}_{\mathrm{g}}\right)}^{\mathrm{n}},$$
(12)

where A denotes a constant and hυ refers to the energy of the photon. The type of transition depends on the value of the exponent, which can be either indirect allowed (n = 2) and direct allowed (n = 1/2).

Figure 4 depicts the relationship between (F(R) hυ)2 and hυ. The Eg values can be calculated from the intercept with the x-axis and are reported in Table 3. Eg for the samples are strongly influenced by shifting the conduction band (CB) rather than the valence band (VB) due to the hole’s effective mass in VB being larger than that of the electrons in CB [40]. Many researchers, including Kasirajan [27] and Wang [41], agree that the value of Eg for ZnO is 3.154 eV. The small addition of Gd at the expense of Zn in ZnO leads to a very small increase in Eg. Kasirajan [27] concluded that the elevation in Eg of Gd-doped zinc oxide thin film was due to the elevation in the density and grain size of ZnO. Another reason for increasing the Eg of Zn0.97Gd0.03O rather than the value of ZnO is the Moss–Burstein effect [40]. Because the Gd atoms are donors, Zn0.97Gd0.03O can be represented as an n-type semiconductor. According to many researchers, including Kabongo, the energy gap of Zn0.97Ho0.03O was greater than that of ZnO [42].

Fig. 4
figure 4

Tauc plots for a ZnO, b Zn0.97Ho0.03O, and c Zn0.97Gd0.03O nanoparticles

Table 3 The energy gap for the investigated samples

The absorption of heavy metals is strongly influenced by the pH of the solution, and the surface charge of nanoparticles varies with pH [43]. Figure 5 depicts the relationship between the efficiency of cadmium ion removal and the pH of the solution. According to Fig. 5, the overall trend is that the removal efficiency rises with increasing pH. At low pH, more H+ ions compete with Cd2+ ions on the NPs surfaces, so Cd2+ ion adsorption is low. Because more OH ions are present in the solution in the alkaline medium at pH = 8, more Cd2+ ions precipitate in the hydroxide form. Doping ZnO with rare earth elements (Gd and Ho) improves water purification from Cd2+ ions. While at pH = 7, the removal efficiency (η) of ZnO nanoparticles is 17%, and η increases to 34% for Zn0.97Gd0.03O. While the maximum removal efficiency is 91% for the Zn0.97Ho0.03O nanoparticles at pH = 8. The XRD of the samples assured that the samples were prepared in nanoscale, which is characterized by a large surface area to volume ratio. As the surface area of the adsorbent increases, the adsorption active sites will increase, as will the removal efficiency. The substitution of Gd3+ or Ho3+ for Zn2+ results in the formation of active adsorption sites and an increase in HM removal efficiency [44].

Fig. 5
figure 5

The relation between the removal efficiency of Cd2+ ions and the pH values for the ZnO, Zn0.97Gd0.03O and Zn0.97Ho0.03O

The isotherm models were used to study the data on the removal of Cd2+ ions from water. The Freundlich and Langmuir models were described using Eqs. (13) and (14), respectively.

$$\frac{{\mathrm{C}}_{\mathrm{e}}}{{\mathrm{q}}_{\mathrm{e}}}=\frac{1}{{\mathrm{q}}_{\mathrm{m}}{\mathrm{K}}_{\mathrm{L}} }+ \frac{{\mathrm{C}}_{\mathrm{e}}}{{\mathrm{q}}_{\mathrm{m}}}$$
(13)
$${\mathrm{q}}_{\mathrm{e}}\hspace{0.17em}=\hspace{0.17em}{\mathrm{K}}_{\mathrm{f}} {\mathrm{C}}_{\mathrm{e}}^{\frac{1}{\mathrm{n}}},$$
(14)

where \(\frac{1}{\mathrm{n}}\) is the adsorption intensity, Kf denotes the Freundlich constant, while qm and KL are the Langmuir constants.

Figure 6 illustrates the relationship between Ce/q and Ce, which represents the Langmuir isotherm model. Figure 7 shows how Lnq is dependent on Ln Ce, which represents the Freundlich model. The Freundlich constant is listed in Table 4.

Fig. 6
figure 6

The Langmuir isotherm model fitting for ZnO

Fig. 7
figure 7

The Freundlich isotherm model fitting for ZnO

Table 4 The Langmuir constant, the adsorption intensity, and the correlation coefficient (R2) for the Langmuir and Freundlich models

Table 4 lists the Langmuir constant, the adsorption intensity, and the correlation coefficient (R2) values for the two isotherm models. The Freundlich model has a higher value of R2 for all samples. Thus, the Freundlich model can most accurately predict the experimental data.

4 Conclusion

The rare earth-doped ZnO was synthesized using the citrate auto-combustion technique. XRD confirmed that the crystallite size increased with rare earth doping. FESEM revealed irregular morphological structures of the prepared nanoparticles. The paramagnetic characteristics of ZnO, Zn0.97Ho0.03O, and Zn0.97Gd0.03O were confirmed by VSM. By doping ZnO with RE, the optical band gap (Eg) can be altered. Eg increased by Gd doping from 3.154 eV for ZnO to 3.157 eV for Zn0.97Gd0.03O, while Eg decreased by Ho doping to 3.138 eV for Zn0.97Ho0.03O. At pH = 8, the sample Zn0.97Ho0.03O had the highest removal efficiency of 91%. The experimental data was fitted using the Freundlich and Langmuir isotherm models. The model that fits the experimental results the best is the Freundlich model.