Introduction

In recent decades, pharmaceutical compounds, especially antibiotics, have been considered as one of the most important aqueous solution pollutants. Because antibiotics are widely used to treat human and animal infectious diseases and have high stability in the environment, high residual toxicity, high solubility in water and are non-biodegradable (Wang and Zhuan 2020; Kamranifar et al. 2019b; Ouaissa et al. 2014). Medicinal compounds enter water resources through various sources such as wastewater from hospitals and homes, pharmaceutical factories, and animal husbandry units (Elmolla and Chaudhuri 2010). Antibiotics are compounds obtained from microorganisms and have bactericidal or bacteriostatic properties. These compounds affect bacteria, especially pathogens, and only a small percentage of them change in the body, and the rest are excreted unchanged from the human body. Antibiotics with low concentrations cause antibiotic resistance in pathogenic bacteria which is why they are so important (Qin et al. 2021; Ahmed et al. 2015). One of the important classifications of antibiotics is based on the presence of beta-lactam rings in their structure. Beta-lactam antibiotics are a broad group of antibiotics that have a beta-lactam ring in their molecular structure. Antibiotics of this group include penicillins, cephalosporins, monobactams and carbapenems (Lima et al. 2020; Kamranifar et al. 2019b). One of the most important groups of beta-lactam antibiotics is penicillins, which are used against sensitive organisms, especially gram-positive bacteria, and often affect the cell wall of bacteria (Salehnia et al. 2020). The results of previous research show that antibiotics are not completely removed in sewage treatment plants and enter the water environment; also, the presence of these compounds in the sludge of sewage treatment plants has been proven. Because antibiotics damage the microbes active in the purification and cause the lack of proper purification, it is very important to remove them from the wastewater before it is discharged into the biological purification process and receiving water (Aksu and Dede 2005; Gulkowska et al. 2008; Seifrtová et al. 2009). Various methods such as membrane separation (Sui et al. 2010), advanced oxidation processes(Anirudhan et al. 2021; Naghizadeh et al. 2017), ozonation (Sun et al. 2012), surface adsorption (Kamranifar et al. 2019a), biodegradation (Wang and Zhuan 2020), electrocoagulation (Arsand et al. 2013), and photolysis (Wammer et al. 2013) have been used to remove drugs and antibiotics from aqueous solutions. In recent years, the use of advanced oxidation processes (AOPs) has been recognized as a useful method for purifying aqueous solutions. The mechanism of advanced oxidation processes (AOPs) is based on the production of highly reactive species, such as hydroxyl radicals (·OH). In this process, by using various methods such as ozone, ultraviolet rays, and H2O2, a combination of them tries to produce free radicals and use them to remove all kinds of pollutants in aqueous solutions. Hydroxyl free radicals are highly reactive due to having free electrons (Derakhshani et al. 2023b; Basha et al. 2011; Singh et al. 2023; Naghizadeh et al. 2015). One of the advanced oxidation processes is the photocatalytic process, which is widely used in the purification of aqueous solutions due to its high degradation potential, relatively short reaction time, and mild reaction conditions (Darvishi Cheshmeh Soltani et al. 2015). Semiconductor ferrites (MFe2O4) are widely used for environmental applications due to their unique physical and chemical properties and specific magnetic bonds at the nanometer scale. These semiconductor materials must have special properties to be used as photocatalysts in studies, including high optical activity, chemical stability, unique electronic properties, low-cost, and high oxidizing properties (Derakhshani et al. 2023a; Sanadi et al. 2021). Among semiconductor ferrites, nickel ferrite nanocomposite (NiFe2O4) is used in various fields, especially as photocatalysts, due to its chemical stability, electrocatalytic behavior, and unique magnetic structure (Makofane et al. 2022; Sivakumar et al. 2013). Modifying the surface of nickel ferrite nanocomposite (NiFe2O4) by various compounds such as TiO2 improves their performance in removing pollutants from aqueous solutions (Poursaberi et al. 2012). TiO2 is a primary semiconductor and can be considered one of the best photocatalyst materials, because it is a non-toxic material and has high oxidation power and chemical stability (Karmakar et al. 2018). So far, various methods have been used for the synthesis of nickel ferrite nanoparticles, the common types of which include: the co-precipitation method (Sivakumar et al. 2011), hydrothermal technique (Li et al. 2010), sol–gel method (Malik et al. 2010), microwave plasma (Bousquet-Berthelin et al. 2008), electrochemical synthesis (Zhao et al. 2007), solvothermal method (Yan et al. 2010), and micro-emulsion process (Hirai et al. 1999). Some of the above methods cause problems such as increasing impurity and toxicity of nanoparticles, creating dangerous side products, and environmental pollution, and also leading to the production of nanoparticles with non-uniform size (Hussain et al. 2016; Saif et al. 2016). Therefore, researchers have made many efforts to synthesize nanoparticles through an environmentally friendly process using enzymes, microscopic organisms, and plant extracts, which is called green synthesis. This method of synthesis of nanoparticles has advantages over other methods, which include producing more stable materials, not using toxic and dangerous chemicals, being cost-effective, and being environmentally friendly (Kulkarni et al. 2020). Green synthesis of nanoparticles is the most effective way of minimizing the use of toxic chemicals and the formation of their toxic by-products. Green nanoparticles have a maximum level of antimicrobial effects with minimal toxicity.

In this study, NiFe2O4@TiO2 magnetic nanocomposite was produced by green synthesis using Pulicaria Gnaphalodes plant extract and used to remove PNG from aqueous solutions, and the effect of parameters such as pH, nanocomposite dose, PNG concentration, and contact time were investigated. The reason why this plant was used for green synthesis is its distribution and abundance around South Khorasan province in Iran (where this research was conducted). According to the unique characteristics of this plant and according to the previous studies of the researchers of this article, it was used as a suitable candidate for the reducing and capping agent in the synthesis process of NiFe2O4 nanoparticles.

Materials and methods

Materials

PNG powder was purchased from Sigma-Aldrich, and a stock solution with a concentration of 500 mg/L was prepared using double distilled water. Other chemicals used in this study include Iron Nitrate Hexahydrate (Fe(NO3)3 9H2O), Nickel Chloride salt (NiCl2 6H2O), SDS surfactant, Tetra-n-Butyl Titanate solution ((CH3CH2CH2CH2O)4Ti), Sodium Hydroxide (NaOH), Hydrochloric acid (HCl), methanol, and ethanol from Merck (Germany) was purchased. A UV-C lamp (Philips, Poland) with a power consumption of 9 watts, a production wavelength of 253.7 nm, a radiation intensity of 282–294 W/m2 and a length of 22 cm and diameter of 2 cm was used and installed in the center of the reactor.

Preparation of methanolic plant extract

To synthesize NiFe2O4@TiO2, the Pulicaria Gnaphalodes plant was collected from around Birjand city (the capital of the South Khorasan province of Iran) and transported to the laboratory. After washing three times with distilled water, this plant was placed at room temperature to dry. To prepare the extract, some of the dried powder of the plant was contacted with a methanol solution and then the solution was passed through Whatman No. 42 paper. A rotary vacuum evaporator (Hei zbad WB eoc, Germany) was used to concentrate methanol and separate the extract.

Biosynthesis of NiFe2O4@TiO2 nanocomposite

First, 5 g of Iron Nitrate Hexahydrate (Fe(NO3)3·9H2O) was added to 70 mL of deionized water and dissolved in water under nitrogen gas conditions for 1 h. In another container, SDS surfactant (1:1 molar ratio to iron salt) was dissolved in 30 mL of distilled water and added to the iron salt as a covering agent. The reaction was continued for 30 min under vigorous stirring at room temperature. Then, 1.47 g of Nickel Chloride salt (NiCl2 6H2O) was added to the reaction solution, and 2 M Sodium Hydroxide was added to increase the pH of the reaction to 12. After 2 h, the sediments obtained were washed and dried after centrifugation at room temperature for 24 h. NiFe2O4 nanocomposite was obtained by calcining the deposits at 600 °C for 3 h.

The synthesis of NiFe2O4@TiO2 nanocomposite was carried out by sonication of 0.2 g of NiFe2O4 nanocomposite in 25 mL of deionized water and ethanol solutions. Then, 1 mL of Tetra-N-Butyl Titanate solution was added drop by drop to the reaction solution under magnetic stirring conditions. After 30 min, the pH of the reaction reached 2 with the addition of 2 M NaOH. The reaction continued at room temperature for 3 h. Finally, the sediments obtained were washed with distilled water and ethanol. The deposits were dried in an oven for 24 h. The final product was obtained by calcining the sediments obtained at 600 °C for 3 h. Schematics of methanolic extraction of Pulicaria Gnaphalodes plant as well as the green synthesis of NiFe2O4@TiO2 are shown in Figs. 1 and 2, respectively.

Fig. 1
figure 1

Methanolic Extraction of Pulicaria Gnaphalodes plant and NiFe2O4 synthesis

Fig. 2
figure 2

Green synthesis of NiFe2O4@TiO2 with Pulicaria Gnaphalodes plant methanolic extract

Measurements of pHzpc for NiFe2O4@TiO2

To determine the point of zero charge (pHzpc) of NiFe2O4@TiO2 magnetic nanocomposite, 11 Erlenmeyer flasks with 50 mL of distilled water were used. Then, the initial pH of the containers was adjusted between 2 and 12 using 1 M NaOH and HCl solutions. Afterward, 0.25 g of the synthesized nanocomposite was added to Erlenmeyer flasks and placed on a shaker for 24 h. The pH of the containers was measured again and a graph of initial pH was plotted against final pH. Finally, the intersection point of two pHzpc curves was introduced.

Photocatalytic experiments

PNG photocatalytic reaction experiments were performed using NiFe2O4@TiO2 magnetic nanocomposites in a photochemical reactor with an internal chamber of 100 mL. PNG powder was used to prepare a stock solution with a concentration of 500 mg/L, and other initial concentrations of the solution were made by diluting the stock solution. To avoid the influence of other lights, all PNG solutions were kept in dark conditions. In addition, the body of the photoreactor was made from stainless steel. PNG removal efficiency in the photocatalytic process using NiFe2O4@TiO2 nanocomposite in different pH ranges (3, 5, 7, 9, 11), PNG concentrations (10, 20, 30, 50, 70 mg/L), nanocomposite doses (0 1, 0.2, 0.4, 0.6, 0.8, and 1.25 g/L), and contact times (10, 20, 40, 60, 100, and 120 min) were investigated at temperature of 25 °C. The flasks were kept in dark conditions for about 30 min with no UV-C radiation before starting the photocatalytic process. At different time intervals of irradiation, 5 mL of reacted PNG solution was taken and centrifuged at a speed of 6000 rpm for 8 min to completely separate the nanocatalyst particles from the solution. The initial and residual concentrations of PNG in the tested samples were measured using a UV spectrophotometer (T80, UV/Visible, England) at a spectral peak of 254 nm. PNG removal efficiency (%R) was determined using the following equation:

$$R = \frac{{{C_0} - {C_t}}}{{C_0}}\; \times 100$$

where C0 is the initial concentration of PNG (mg/L) before the photocatalytic process, and Ct is the residual concentration of PNG after the process.

Results and discussion

Characteristics of the NiFe2O4@TiO2 magnetic nanocomposite

FTIR analysis

FTIR analysis revealed the presence of distinct chemical bonds within the nanocomposite. Specifically, it confirmed the presence of titanium–oxygen bonds, carbon–carbon bonds, and Mn–O bonds. This provides evidence of the composition and chemical integrity of the nanocomposite. Figure 3 illustrates the FTIR spectra of NiFe2O4@TiO2. The absorption band at about 3420 cm−1 is related to the stretching mode of the hydroxyl groups (OH) on the surface of the NiFe2O4@TiO2. A band observed at 563 cm−1 is assigned to the stretching vibrations of Ti–O in anatase TiO2 (Li et al. 2015). According to the synthesis results, NiFe2O4@TiO2 nanocomposites have been successfully synthesized.

Fig. 3
figure 3

FTIR spectrum of NiFe2O4@TiO2

XRD analysis

The structural and crystalline properties of the products were examined using X-ray diffraction (XRD) analysis. Figure 4 displays the XRD patterns specifically for the NiFe2O4@TiO2 nanoparticles. XRD analysis successfully characterized the crystal structure of the NiFe2O4@TiO2 magnetic nanocomposite. The diffraction patterns obtained confirmed the crystalline nature of the material and allowed for the determination of crystal lattice parameters, crystal size, and the identification of phases present. The patterns shown in Fig. 4 can be easily identified as anatase titania based on the presence of peaks at 2θ values of 25.4, 38.1, and 48.2° [JCPDS card no 00-035-0088], which correspond to the (101), (004), and (200) crystallographic planes, respectively. These findings indicate that the NiFe2O4@TiO2 nanoparticles consist of a layer of TiO2 covering the NiFe2O4 nanoparticles, as there were no distinct peaks solely attributed to NiFe2O4 present. Our findings align with the research conducted by Kim and colleagues (Kim et al. 2014).

Fig. 4
figure 4

XRD pattern of NiFe2O4@TiO2

FESEM and EDS mapping analysis

The composites that were prepared underwent analysis of their surface characteristics and structure using a scanning electron microscope (SEM). SEM images, presented in Fig. 5, depict the modified NiFe2O4 nanoparticles with TiO2, accompanied by elemental mapping conducted through magnetic particles. Figure 6 displays the SEM–EDS spectrum of the NiFe2O4@TiO2 composite, providing further analysis. The EDS spectrum and elemental mapping confirm the successful coating of the NiFe2O4 particles with TiO2, demonstrating the presence and even distribution of Ni, Ti, Fe, and O. energy dispersive spectroscopy (EDS). Figure 5 reveals the rough surface texture of the NiFe2O4 spheres, indicating the existence of a TiO2 layer on their surfaces. Upon closer examination, the images also illustrate the spherical shape of the particles. Furthermore, there is variation in particle sizes, with some larger particles likely formed due to the aggregation of smaller ones. EDS mapping analysis visualizes the distribution of the constituent elements in the nanocomposite by two dimensionally displaying the characteristic X-ray intensities or the concentrations of the elements (Esmati et al. 2021). Based on the results of this analysis (Fig. 6), nickel, iron, titanium, and oxygen elements were uniformly distributed. Mapping spectra of NiFe2O4@TiO2 nanocomposite including each constituent element alone and combined are shown in Fig. 7.

Fig. 5
figure 5

FESEM Spectra of NiFe2O4@TiO2 nanocomposite

Fig. 6
figure 6

EDS curve of NiFe2O4@TiO2 nanocomposite

Fig. 7
figure 7

Mapping spectra of NiFe2O4@TiO2 nanocomposite a Fe Ka, b Ni Ka, c O Ka, d Ti Ka e combine

VSM analysis

One of the most important properties of nanocomposites is their magnetic property, which is studied using VSM analysis. This analysis is done by a vibrating sample magnetometer. Several parameters including the material’s residual loop, can be obtained through the interpretation of VSM analysis results. The VSM analysis demonstrated the magnetic properties of the NiFe2O4@TiO2 nanocomposite. It indicated the presence of a suitable magnetic structure, offering insights into the material’s potential applications in magnetic devices or separations. In summary, the amalgamation of these characterization techniques allowed us to comprehensively assess the structural attributes of the NiFe2O4@TiO2 nanocomposite. Figure 8 shows the hysteresis ring of magnetic nanocomposite NiFe2O4 and NiFe2O4@TiO2 obtained at room temperature. Based on these two curves, the saturation magnetization (Ms) value for NiFe2O4 and NiFe2O4@TiO2 is 25.6 emu/g and 23 emu/g, respectively, and by comparing them, we conclude that the magnetic property of NiFe2O4 decreases with its surface modification. Based on these magnetic properties of the nanoparticles, this compound shows promise as a suitable option for use as a recyclable catalyst.

Fig. 8
figure 8

VSM analysis of A NiFe2O4 B NiFe2O4@TiO2 nanocomposite

DLS analysis

Zeta potential distribution and dynamic light scattering (DLS) analyses were performed to investigate the stabilization and size distribution of biosynthesized NiFe2O4@TiO2 nanocomposites (Fig. 9). The DLS analysis exhibited the hydrodynamic size of NiFe2O4@TiO2 nanocomposites as 80–110 nm (Fig. 7). The colloidal solution of NiFe2O4@TiO2 nanocomposites had a high negative zeta potential of about -5.4 mV, which indicates that the biosynthesized NiFe2O4@TiO2 nanocomposites were highly stable.

Fig. 9
figure 9

DLS graph of NiFe2O4@TiO2 nanocomposite

TEM analysis

TEM imaging unveiled the morphological characteristics of the nanocomposite. It exhibited a spherical structure, thus establishing the nano-sized nature of the particles. This detailed information about particle size and shape is critical in understanding the nanocomposite’s properties. TEM image of NiFe2O4@TiO2 magnetic nanocomposite is shown in Fig. 10. According to this image the size of the synthesized nanocomposite is lower than 100 nm. The TEM analysis or transmission electron microscope is one of the most important analysis methods for studying materials, especially nanostructured materials, due to its extremely high ability to image particles at magnifications of nearly one million times. Using TEM analysis, it is possible to study the microstructure of materials, observe nanoparticles and examine their internal structure. This microscope is the most powerful tool for imaging materials and along with SEM and AFM analysis methods, a complete study of nanostructured materials can be done.

Fig. 10
figure 10

TEM image of NiFe2O4@TiO2 nanocomposite

Measurements of point of zero charge (pHzpc)

pHzpc is generally described as the pH at which the total net charge of the nanocomposite surface is zero and neutral. Figure 11 shows that the pHzpc of NiFe2O4@TiO2 magnetic nanocomposite is about 6.7. The nanocomposite surface has a positive charge at pH < pHzpc and a negative charge at pH > pHzpc.

Fig. 11
figure 11

pHzpc of magnetic NiF2O4@TiO2 nanocomposite

Effect of pH

Figure 12 shows the effect of pH 3, 5, 7, 9, and 11 on the photocatalytic degradation of PNG by NiFe2O4@TiO2 magnetic nanocomposite. PNG solution with a concentration of 20 mg/L was prepared for this experiment and after pH adjustment, 0.6 g/L of catalyst was added to it and the tests were performed. The maximum amount of photocatalytic degradation of PNG occurred at pH = 11. Considering that the percentage of removal is close at pH 9 and 11, and considering that operationally, a lot of alkali is used to bring the pH from 9 to 11, we chose pH 9. Therefore pH = 9 was selected as the optimal pH.

Fig. 12
figure 12

Effect of solution pH on photocatalytic efficiency of PNG by NiFe2O4@TiO2 (C0 = 20 mg/L, Nano catalyst dosage = 0.6 g/L, T = 25 °C)

As the pH increases from 3 to 11, the degradation rate of PNG decreases. Solution pH is one of the factors affecting the efficiency of advanced oxidation processes, especially photocatalytic degradation, which affects the surface charge of photocatalysts, the solubility of antibiotics, and the mechanism of hydroxyl radical production (Dehghani et al. 2014). PNG has the highest decomposition rate in an alkaline medium. In the alkaline environment, there are more hydroxide ions (OH) on the surface of nanoparticles, which are easily oxidized and form hydroxyl radicals (OH) with a very high oxidation potential. On the other hand, in alkaline environments, the hydrolysis of antibiotics takes place due to the instability of the β-lactam ring. Therefore, nanoparticles can react more effectively with PNG molecules and cause their destruction (Elmolla and Chaudhuri 2010; Pandey et al. 2023).

Effect of nanocatalyst dosage

The effect of NiFe2O4@TiO2 nanocatalyst dosage on PNG decomposition was investigated in the range of 0.8–1.25 g/L at pH = 9 and a concentration of 20 mg/L of PNG and a temperature of 25 °C (Fig. 13). Experiments performed with different dosages of NiFe2O4@TiO2 magnetic nanocomposite showed that the photocatalytic degradation of PNG increases with increasing the catalyst dosage up to 0.6 g/L and then decreases. The highest degradation of PNG was observed in the nanocomposite dose of 0.6 g/L with a degradation percentage of 65.50%.

Fig. 13
figure 13

Effect of nanocatalyst dosage on photocatalytic efficiency of PNG by NiFe2O4@TiO2 (C0 = 20 mg/L, pH = 9, T = 25 °C)

By increasing the dose of photocatalyst, the number of active sites on the surface of the catalyst increases, which leads to the production of more hydroxyl radicals, and as a result, the photocatalytic degradation efficiency of PNG increases. But further increase in the dose of photocatalyst leads to the accumulation of NiFe2O4@TiO2 and increasing the turbidity of the solution. The created turbidity reduces the penetration of UV light into the solution and light scattering, thus reducing the degradation rate of PNG (Geng et al. 2019). In a study, Wang et al. used zinc titanate nanoparticles for the photocatalytic degradation of humic acid in water, they concluded that the light scattering action is intensified by the overly suspended catalyst in the aqueous solution, which leads to a decrease in the photocatalytic activity (Wang et al. 2012; Alam et al. 2017).

Effect of initial PNG concentration and contact time

Figure 14 shows the effect of the initial concentration of PNG and the contact time. To investigate the effect of the initial concentration of PNG on its photocatalytic degradation using NiFe2O4@TiO2 nanocomposites, the concentration of PNG in the range of 10 to 70 mg/L in different contact times was investigated. As shown in Fig. 14, increasing the concentration of PNG decreases the degradation efficiency.

Fig. 14
figure 14

Effect of initial PNG concentration and contact time on photocatalytic efficiency of PNG by NiFe2O4@TiO2 (Nano catalyst dosage = 0.6 g/L, pH = 9, T = 25 °C)

A higher concentration of PNG acts as a barrier against the transmission of ultraviolet light to reach the catalyst surface and, as a result, reduces the activation of the catalyst and insufficient oxidation of PNG. On the other hand, the number of hydroxyl radicals produced for higher PNG concentrations is not enough, because the number of these radicals is constant, but the pollutant concentration increases. Therefore, increasing the concentration of PNG leads to an inhibitory effect on its destruction (Moradi et al. 2018) (Alam et al. 2018).

The reaction time is one of the important and influential parameters in the process of photocatalytic decomposition of pollutants. In this study, the degradation efficiency of PNG was investigated in the range of 0 to 120 min of reaction time in different pollutant concentrations. According to the results, the degradation rate of PNG was the highest in the first 20 min and was almost constant after 20 min. In the first stages of decomposition, due to the high number of empty holes on the surface of NiFe2O4@TiO2 nanocomposite and the high number of hydroxyl radicals in the solution, the degradation rate of PNG is high. But with the passing of time, these holes are filled by PNG. As a result, the amount of destruction is less than the initial stages (Derakhshani and Naghizadeh 2023, Chakrabarti et al. 2009; Alam et al. 2023).

Conclusion

This study was conducted to investigate the effect of NiFe2O4@TiO2 magnetic nanocomposite as a photocatalyst in aqueous solutions. Examining the results of TEM, FTIR, XRD, FESEM, VSM, and DLS analyses confirmed that this nanocomposite was successfully synthesized and its size was about 70 nm. A green synthesis method using Pulicaria Gnaphalodes extract was used to prepare this nanocomposite. The results of PNG decomposition by NiFe2O4@TiO2 nanocomposite showed that in optimal conditions (pH = 9, nanocomposite dose: 0.6 g/L, and PNG concentration: 10 mg/L), the highest removal efficiency was 71%. Therefore, NiFe2O4@TiO2 nanocomposite has high photocatalytic activity and can effectively eliminate PNG from aqueous solutions using UV light.