1 Introduction

Nanoparticles (NPs) have been used widely in modern biotechnology and environmental applications due to their benefits upon bulk materials. NPs have shown to own interesting adsorption efficiency; hence, they have been used to clean wastewater from pollutant such as heavy metals. Studies revealed that iron oxides are very important NPs adsorbents as they have shown interesting efficiency in the adsorption of Ag, Hg, Mn, Zn, Pb and Cd ions from waste water [1]. Other polymeric NPs were applied successfully in the adsorption of Hg, Pb and Cd [2].

Among nanomaterials, spinel ferrites with the general formula AFe2O4 (A = Mn, Co, Ni, Mg or Zn) have unique optical, electric, magnetic and chemical properties. Their small size, low cost, high stability and environmental friendly offer numerous environmental applications [3]. Recently, synthesized spinel ferrites NPs including MgFe2O4 have shown high removal efficiency of chromium (Cr) which is a toxic pollutant present in aqueous systems. It was also shown that this efficiency varies with the magnetic properties of MgFe2O4 NPs [4] which depends in turns in their synthesis route. Other studies demonstrated that MgFe2O4 NPs were efficient in the removal of some environmental pollutant such as SO2 in atmosphere [5] and arsenic (As) in drinking water [3].

A broad variety of methods are being applied to synthesize magnesium ferrite (MgFe2O4) including combustion [6], electrospinning [7, 8], thermal treatment [9], solvothermal route [10], micro-emulsion [11] and chemical co-precipitation [12, 13]. It is well known that the synthesis route as well as the starting precursors reagents and post-annealing control the shape, particle size, agglomeration and chemical composition (deviation from stoichiometry which creates structural defects such as vacancies). Therefore, different approaches of synthesis may vary considerable properties of NPs. For example, in electrospinning method, Mg(NO3)2_6H2O, Fe(NO3)3_9H2O, PVP, DMF, acetic acid and ethanol have been used as starting chemicals to prepare MgFe2O4 nanofibers [7]. The results showed that the saturation magnetization M s at room temperature ranges from 17.0 emu/g after calcination at 500 °C to 31.1 emu/g after calcination at 800 °C.

However, some other approaches lead to lower values in saturation magnetization. A thermal treatment method was applied on very similar starting chemicals (Fe(NO3)3_9H2O, Mg (NO3)2_6H2O and PVA) gave a maximum saturation magnetization of the synthesized MgFe2O4 nanocrystals calcined at 973 K of 11.74 emu/g. The authors related this low value to the existence of inactive magnetic layer on the surface of NPs [9]. Recently, micro-emulsion was applied to prepare MgFe2O4 NPs [11], and the saturation magnetization was found even lower (9.84 emu/g) which was associated to the speculated differences in inversion parameter and redistribution of Mg ions among A and B sites of the spinel structure.

The aim of this research work is to investigate the effect of synthesis route [sol–gel (SG) and modified sol–gel using ammonia (MSG-A)] and starting precursors on the phase stability, microstructure and magnetic properties of MgFe2O4 nanopowders. Structure, microstructure, magnetic and surface properties were analyzed. Furthermore, an evaluation of the efficiency of these products for the removal of various metals ions (Cd(II) and Ni(II)) from aqueous solution has been performed.

2 Experimental part

2.1 Preparation of MgFe2O4 nanopowders

MgFe2O4 nanopowders were prepared using two synthesis approaches sol–gel (SG) and modified sol–gel using ammonia (MSG-A). Both methods were followed by calcination at 500 °C. The synthesis steps for each method are discussed (detailed) below:

2.1.1 Sol–gel (SG) method

Calculated amounts of magnesium nitrate and ferric nitrate were dissolved in double-deionized water followed by adding citric acid as a gelling agent. Then stirring was applied to the solution resulting at room temperature for 1 h until a clear transparent solution was obtained. This clear solution was kept for gellation at 65 °C for 12 h, and the gel was then dried at 110 °C, followed by calcination at 500 °C for 2 h (Fig. 1a).

Fig. 1
figure 1

Synthesis steps of MgFe2O4 nanopowders via a Sol–gel method b modified sol–gel with ammonia

2.1.2 Modified sol–gel method with ammonia (MSG-A)

Calculated amounts of magnesium nitrate and ferric nitrate were dissolved in double-distilled water followed by adding citric acid as a gelling agent. Then stirring was applied at room temperature for half an hour until a clear transparent solution was obtained, and ammonia was added in order to adjust the pH value to 10. Then the resultant solution was kept under heat of 100 °C and constant stirring for 1 h. The obtained powders were subsequently calcined at 500 °C with a heating rate of 5 °C/min for 2 h under atmosphere air flow (Fig. 1b).

2.2 Characterization of MgFe2O4 nanopowders

Phase analysis of MgFe2O4 nanopowders was attained by X-ray diffraction (XRD) measurement using high-resolution Rigaku Ultima IV diffractometer equipped with Cu-K α radiation (\(\lambda_{{k_{\alpha } }}\) = 1.5418 Å). Qualitative and quantitative phase analysis was achieved using PDXL program. The refinements were carried out using MgFe2O4 spinel phase with a cubic crystal structure (space group Fd3m; No. 227), Fe metal with cubic crystal structure (space group Fm3m, No. 227), and MgO with cubic structure (space group Fm3m No. 225). The refinements included phase composition, lattice parameters and microstructural parameters (crystallite size and microstrain). The morphology of the nanopowders has been investigated by field emission scanning microscope (FESEM) using JEOL-JSM-7600F equipped with energy-dispersive spectroscopy (EDS). Magnetization-field (M-H) hysteresis loops of the as-prepared powders were measured at room temperature using PMC MicroMag 3900 model vibrating sample magnetometer (VSM) having a 1-Tesla magnet and a sensitivity of 0.5 µemu.

The specific surface areas, S BET, were estimated using the BET (Brunauer–Emmett–Teller) method. The total pore volume of micropores and surface areas of mesopores were calculated from the t-plot method of Lippens and de Boer [14]. The pore size distribution (PSD) was determined by the BJH (Barrett–Joyner–Halenda) method applied on the adsorption–desorption hysteresis loop [15].

The N2 adsorption–desorption isotherms of the MgFe2O4 nanopowders were measured at 77 K using an automatic adsorption analyzer (ASAP 2020, Micromeritics). The SG and MSG-A samples were degassed under vacuum at 100 °C for about 2 h prior to each measurement.

2.3 Adsorption experiments

Ni(II) and Cd(II) stock solutions (1000 mg/L) were prepared in distilled water using nickel nitrate (Ni(NO3)2) and cadmium nitrate (Cd(NO3)2). Successive dilutions were then applied to the experimental solutions in order to obtain the desired concentration. All the reagents were of analytical grade or highest purity available and used without further purification. The experiments were conducted in batch mode by adding 16 mg of MgFe2O4 powders obtained by MSG-A and SG to 25 ml of different metal ion solution having different initial concentrations with a pH fixed at about 7.0 ± 0.2 at room temperature in a 50-ml conical flask.

The initial concentrations of Ni(II) and Cd(II) are 40.2 and 68.85 mg/L, respectively. The mixtures were stirred by a magnetic stirrer (600 rpm) for 12 h according to our preliminary tests. 15 ml of suspension is sampled from each flask and filtered using 0.25-μm cellulose acetate syringe filters and then centrifuged at 6000 rpm for 10 min. The concentrations of Ni(II) and Cd(II) in the filtrate are measured by inductively coupled plasma-atomic emission spectrometry. The amount of adsorbed solute qe was determined as follows:

$$q_{\text{e}} = \frac{{\left( {C_{0} - C_{\text{e}} } \right)*V}}{m}$$
(1)

where C 0 and C e are the initial and equilibrium concentrations, respectively (mg.l−1), V the volume of the pollutant solution (l) and m the mass of the nanopowder (mg).

3 Results and discussion

3.1 Structural and morphological characteristics

X-ray diffraction patterns of the calcined MgFe2O4 nanopowders are shown in Fig. 2. All the main peaks are indexed using spinel cubic MgFe2O4 phase. The calculated crystallite size (CS) ranges from 4 up to 13 nm for nanopowder calcined at 500 °C. No additional peaks corresponding to other phases were observed in XRD patterns for nanopowder prepared by SG. However, for nanopowders prepared by MSG-A, additional peaks corresponding to other phases were observed, indicating the presence of some impurities of MgO (18%).

Fig. 2
figure 2

X-ray diffraction patterns of MgFe2O4 nanopowders prepared by SG and MSG-A methods

The refined values of the lattice parameter reported in Table 1 for both SG and MSG-A samples are close to the value of the spinel MgFe2O4 phase reported in the literature [9]. Meanwhile, the lattice parameter of MSG-A is slightly higher than of SG. This can be associated with metal ion redistribution among tetrahedral and octahedral ionic sites [16], in accordance with ionic radii (r(Mg2+ = 0.72 Å), r(Fe3+ = 0.64 Å)):

$$\left[ {\left( {1 - x} \right){\text{Mg}}^{2 + } + y{\text{Fe}}^{3 + } } \right]_{\text{T}} \left[ {\left( {1 - y} \right){\text{Fe}}^{3 + } + x{\text{Mg}}^{2 + } } \right]_{\text{O}} {\text{O}}_{4}$$
(2)
Table 1 Crystallite size, microstrain, lattice parameters and magnetic parameter of MgFe2O4 obtained by XRD and VSM

FESEM images for MgFe2O4 nanopowders showed agglomerated grains distributed non-uniformly with size ranging from 5 to 30 nm for SG sample (Fig. 3a) and 20 to 50 nm for MSG-A sample (Fig. 3b). Such agglomeration has been found in many cases of MgFe2O4 NPs prepared by chemical routes [9, 17, 18], which is due to the natural interactions between these magnetic NPs (each NP acts as magnet) [9] and to their high surface energy [18]. FESEM images also confirm that adding ammonia as a modifier during synthesis in sol–gel method (MSG-A) results in larger particles size, which agree with XRD results (Table 1).

Fig. 3
figure 3

FESEM images for MgFe2O4 nanopowders prepared by a sol–gel method (SG) b modified sol–gel method with ammonia (MSG-A)

This can be explained as the presence of ammonium ions in the reaction medium has a twofold role; it alters the pH of the medium and reduces the amount of the energy required to start the nucleation or in other words enhances the rate of nucleation. Therefore, if the concentration of ammonia is increased, the number of active groups at the surface of NPs will increase too and, hence, favor the aggregation of the particles into larger ones. Moreover, the addition of amine-based compounds like ammonia retards the growth of bulk MgFe2O4 phase because of its property of strong coordination interaction with metal ions, leading to an increase in the surface area and enhancement in porosity [1923].

The magnetization-field (M-H) curves of the calcined MgFe2O4 nanopowders obtained from room temperature VSM measurements are shown in Fig. 4. The magnetization-field (M-H) curves show the presence of room temperature ferromagnetism (RTFM) with a small paramagnetic component, which was removed to obtain the correct values of saturation magnetization reported in Table 1. The M-H curves correspond to a soft magnetic material and indicate ferromagnetism with a hysteresis loop in the field range of ±5000 Oe, while outside this range, the magnetization is proportional to the applied magnetic field and reaches saturation in the investigated field range of (±10 kOe). According to the results (Table 1), Ms ranges from 5.4 to 9.9 emu/g. Fe ions were not identified in both samples, and hence, the resulted magnetization is considered to be due the spinel phase of the nanopowders. The magnetic properties of spinel phases are known to be very sensitive depending on the synthesis conditions, particle size and the occupancy rate of Mg and Fe ions within tetradedral (T), and octahedral (O) sits within the cubic crystal structure (Mg1−x Fe x )(Fe1−y Mg y )2, as x and y may vary considerably. This was reported for magnesium ferrite [16] and other ferrites such as Co–Zr-doped strontium hexaferrite SrCo x Zr x Fe(12−2x)O1 [24] and Co0.5Mg0.5Cr x Fe2−x O4 [25]. Similar results were also obtained in other systems such as ZnO nanoparticles [26].

Fig. 4
figure 4

M-H hysteresis loops of MgFe2O4 nanopowders perpared by SG and MSG-A methods

Isotherm shape provides information on pore size, which is usually categorized as micropore, mesopore, or macropore. For instance, Fig. 5 illustrates the N2 adsorption–desorption isotherms for SG and MSG-A nanopowders. It is clear that the N2 adsorption–desorption isotherm of SG nanopowder exhibits a combination of type I and II shape, as per the classification of IUPAC for sorption isotherms [27], matching the specifications of a solid material rich in mesopores. The hysteresis loop of H2-type for SG material indicated a slit-shaped mesopores, similar to many nanomaterials (i.e., as it can be seen in Fig. 6 of pore distribution and the calculated average pore diameter 45 Å in Table 2). However, the modified MSG-A nanopowder exhibits a sorption isotherm of type II, with a hysteresis loop of H4 type. At elevated relative pressure P/Po, the hysteresis of H4 type was due to the filling up of mesopores by capillary condensation, indicating a shape of pores that was flatter instead of cylindrical (average pore diameter 113 Å).

Fig. 5
figure 5

Adsorption–desorption isotherms of N2 at 77 K of SG and MSG-A nanopowders

Fig. 6
figure 6

Pore size distribution of SG and MSG-A nanopowders

Table 2 Main characteristics of SG and MSG-A nanopowders

The BJH method was used for the determination of the pore size distribution. As shown in Fig. 6, the pore size distribution of SG nanopowder is narrow and do not exceed 50 Å with an average pore diameter of about 45 Å. It is obvious that the average pore diameter of the nanopowder prepared using the modified sol–gel method is increased, and the pore size distribution is well dispersed in the interval 45 to 200 Å.

Particle size, pore characteristics, and BET surface area are listed in Table 2. The surface area is significantly decreased from 115.3 to 31.6 m2/g by the modified method. The results showed also that the modified process increased the average diameter of pores (from 45 to 113 Å). This finding was in accordance with XRD results (Table 2) as well as SEM images (Fig. 4).

3.2 Adsorption capacity tests

The experiment of selective removal of (Cd(II) and Ni(II)) ions, which are well-known toxic heavy metals, was carried out at room temperature with a pH value fixed at 7.0 ± 0.2.

Figure 7 illustrates the experimental results of adsorption capacities of both heavy metals ions by both adsorbents, respectively. The figure showed clearly that the adsorption of both adsorbents for Ni(II) is higher than that for Cd(II) as the adsorption capacity of Ni(II) ions is about 62.67 and 61.2 mg g−1 for MgFe2O4 nanopowder, SG and MSG-A, while in the case of Cd(II) the values observed are 36.49 and 32.84 mg g−1, respectively. Although the surface area of SG sample is around four times higher than that of MSG-A, both samples showed a close adsorption rate. This can be explained as follows: the size of MSG-A NPs is four times larger than the size of SG NPs, in agreement with surface area, therefore, the smaller the particle size, the higher tendency of agglomeration (Fig. 8) because each NP can be considered as a “magnet” [28]. This will directly affect the available surface sites for the adsorption, leading to a relatively lower adsorption rate.

Fig. 7
figure 7

Ultimate adsorption capacities of toxic heavy metal (Ni and Cd) ions removal by SG and MSG-A nanopowders

Fig. 8
figure 8

Effect of agglomeration of SG and MSG-A nanopowders on the uptake of ions

In this study, the synthesized MgFe2O4 nanopowders with SG and MSG methods have shown a considerable adsorption capacity for the removal of Ni and Cd metals in comparison with other magnetic nanoabsorbents (Table 3). For example, in a previous study [29] on the removal of the same heavy metals using Ni-doped α-Fe2O3 nanoparticles, the adsorption capacities were found to be lower for Ni(II) metal ions (about 42 mg g−1) using similar experimental parameters. It is essential to mention that the pH is one of the important influencing parameter during the adsorption experiments as several investigations showed that the maximum adsorption capacities can be obtained, during the removal of Cd(II) and Ni(II) by iron oxides nanoparticles, at pH values ranging from 5 to 8 [29]. On the other hand, Hu et al. [30] obtained relatively low adsorption capacities for Ni(II) which was about 27 mg g−1, i.e., almost half the amount obtained in the present study. Subsequently, owing to the reason that the milled goethite is highly efficient for Ni(II) than the remaining metal ions, further experimental study will be devoted only to Ni(II) removal from aqueous solution. It is very important to note that Ni(II) is an oligo-element not very toxic at the natural state, but very toxic when bounded to synthesis products. Furthermore, MgFe2O4 nanopowders have shown much higher adsorption capacity for Ni, than Fe ions [31] and some other iron oxides composites [32] that owned much lower adsorption capacities of Ni, i.e., 9.24 and 8 mg g−1, respectively, under very similar experimental conditions.

Table 3 Comparison of MgFe2O4 nanopowders with other adsorbents reported in the literature

In the case of the adsorption of Cd metal ions, MgFe2O4 powders adsorption capability was considerable too, while other adsorbant Ag-MWCNTs has slightly higher adsorption capacity of 54.94 mg g−1 [34]. This can be explained by the higher temperature (39.5° C) and also the higher BET surface area 119.46 m2g−1 that obtained for Ag-MWCNTs which confirms the correlation between the adsorption capacity and the BET surface area (Table 3).

4 Conclusion

MgFe2O4 nanopowders have been successfully synthesized using different approaches and different reagents followed by calcination. X-ray diffraction analysis confirms that pure single spinel cubic phase is formed with crystallite size in the range from 3 to 15 nm. The calcined nanopowders reveal room temperature ferromagnetism (RTFM) having a saturation magnetization in the range 5.4–9.9 emu/g. The as-prepared nanopowders have shown potential applications in heavy metal removal from aqueous solution. SG and MSG-A MgFe2O4 nanopowders were identified as efficient adsorbents for Cd and Ni metals from aqueous solutions. The obtained results revealed better affinity for the removal of Ni(II) than Cd(II). In the present investigation, the maximum adsorption capacity is tested. Nevertheless, this study will be enriched by performing further experiments to evaluate the kinetics, adsorption equilibrium and thermodynamic parameters of toxic heavy metal ions (Ni and Cd) by MgFe2O4 nanopowders.