1 Introduction

Nanomaterials, especially carbon nanomaterials, have been attracted broad interests in the recent decades because of their promising properties and vast applications. There are several types of nanostructures for carbon materials, such as fullerenes, nanotubes and nanofibers [1]. Carbon nanofibers (CNFs) could be produced using the decomposition of organic compounds on a metal or metal-based catalyst [2]. The exclusive structure of CNFs makes them appropriate candidates for different applications such as electronic materials, hydrogen storage, catalyst, sensors and catalytic supports [3]. Various CNFs (twisted, straight or spiral) could be prepared by employing various carbon sources, catalysts or preparation methods. Typically, the CNFs diameters mostly are between 3 and 100 nm, while their lengths usually are in the range of 0.1–100 mm [4].

The doping of heteroatom has been widely employed for the modification of carbon materials [5]. In this line, several protocols have been applied for the insertion of heteroatoms in the structure of carbon nanomaterials. Recent reports have demonstrated that heteroatom doping can dramatically influence the structures and properties of CNFs. Moreover, the use of different catalysts (Fe, Mo, Ni) has been reported to prepare these materials. In recent years, nanoscale ferrites (MFe2O4) have been prepared increasingly because of their interesting physical properties [6]. All ferrites have moderate magnetic properties and n-type semi-conductivity that propose a wide range of applications for them [7]. There are several reports on the growth of simple and doped CNFs by the chemical vapor deposition (CVD) method, while none of them has been used ferrites as catalysts for the preparation of S-doped CNFs (SCNFs).

Furthermore, the effect of different metal catalysts (Ni, Fe, Co) [8], catalyst support (MgO, SiO2, Al2O3 and TiO2) [9], carbon source (methane, ethane and carbon monoxide) [10], and the reaction conditions on the yield of CNFs have been investigated. Mostly Ni, Co and Fe have been employed for the CNFs’ growth both as bulk particles (with the typical size of 700 nm) and as supported particles (10–50 nm). These metals have been used to form their carbides, which produces carbon nanostructures [11]. Moreover, besides the Ni-based catalysts, which need fewer temperatures and give higher yields, the activity of other metals (W, Cu, Cr and Mo) has been investigated [12].

After the preparation of these carbon materials, they could be used in various applications. In this work, we have focused on the sensor properties of this type of material to detect morphine. Morphine is the most abundant alkaloid in opium, the most effective painkiller and a synthetic intermediate for the preparation of various related drugs [13]. Therefore, the determination of this compound in pharmaceutical and biological samples could be significant [14]. Measuring morphine could be performed using different analytical methods such as thin-layer chromatography, GC [15], Mass spectrometry [16], HPLC [17], surface plasmon resonance [18], UV–Vis spectroscopy [19], fluorimetry [20], chemiluminescence [21], radioimmunoassay (RIA) [22], and electrochemical methods [23]. Therefore, the use of the prepared SCNF as a morphine sensor has been considered in this study. In this line, gold-decoration on the surface of SCNFs has also been investigated [24,25,26,27].

The use of various ferrites in the preparation of CNTs has been reported by Dhand et al. using CVD method [28]. Based on the reported studies and previous investigations of this group, among various possible catalysts for preparing these materials, ferrites showed the highest efficiency in the preparation of SCNFs. They showed Zn and Co ferrites could not perform the desired product in 700 °C and led to spherical carbons. In this work, based on the work of Dhand and the previous experiences of this group on the sulfur doping and decoration of carbon nanostructures [29,30,31], sulfur-doped nanofibers (SCNFs) have been synthesized via the CVD method and decorated with gold nanoparticles (GNPs) by electrodeposition. This doping has been considered because of the strong interaction between sulfur and gold and its intense effects on carbon materials (based on our previous studies). The selection of gold has been made because there are a few reports on the electrochemical behaviors of gold-decorated carbon nanomaterials and this element has the highest stability among all metals of the periodic table.

2 Experimental

Inorganic salts, including FeCl3·6H2O, NiCl2·6H2O and ZnCl2 were purchased from Merck and used without further purification. Other chemicals such as ethanol, oleic acid, ammonia, sulfur and hydrochloric acid were bought from domestic companies in industrial grade and used after purification. The acetylene (99.99%) and argon (99.9999%) gases were prepared from Tebgas Company (Isfahan, Iran). A double-zone electric tube furnace (Nano sat Co, Semnan, Iran; www.nanosatco.com) has been employed to grow products. The reaction chamber was a horizontal tube (quartz) of 45 mm diameter and 120 cm length. The morphology of the samples and EDS analyses were determined using MIRA3 TESCAN FESEM with. A Philips X-ray diffractometer was used to obtain the XRD patterns. Raman spectra were recorded using Takram P50C0R10 spectrometer. IR spectra were recorded on a JASCO FTIR680 plus spectrometer. The reflectance spectra were recorded on JASCO V570 spectrophotometer. The electrochemical experiments were performed using Autolab potentiostat/galvanostat (Metrohm system) containing a GCE, Pt and Ag/AgCl electrodes. The Britton-Robinson buffer solution was prepared by mixing equimolar amounts of 0.04 M of phosphoric acid, boric acid and acetic acid. The pH was corrected using 0.01 M sodium hydroxide solution.

2.1 Synthesis of spinel ferrites

2.1.1 Synthesis of NiFe2O4

All Spinel Ferrites MFe2O4 nanoparticles (M = Ni, Ni/Zn, and Zn) were synthesized by the co-precipitation method, as previously reported method [32]. For the synthesis of NiFe2O4, NiCl2·6H2O (2.4) and FeCl3·6H2O (5.4 g) were added to deionized water (50 mL) in a 100 mL round-bottom flask with mechanical stirring at 60 °C for a few minutes. The solution was deoxygenated by introducing argon gas and then, 2 mL oleic acid was added. After this step, aqueous ammonia (25%) was added to the solution until pH = 8–9. The suspension was stirred for one h at 80 °C and cooled to room temperature. The precipitates were separated, rinsed with deionized water (3 times) and EtOH (2 times) and dried for 12 h.

2.1.2 Synthesis of ZnFe2O4

Briefly, using 1.4 g of ZnCl2 instead of NiCl2·6H2O as raw material, ZnFe2O4 nanoparticles were prepared based on the above method.

2.1.3 Synthesis of Ni0.5Zn0.5Fe2O4

According to the above method, 1.2 g of NiCl2·6H2O, 0.7 g of ZnCl2 and 5.4 g of FeCl3·6H2O were used instead of NiCl2·6H2O for the preparation of Ni1/2Zn1/2Fe2O4 synthesis.

2.2 Synthesis and purification of SCNFs

100 mg of the employed catalyst was distributed on a ceramic boat, which was placed in the second heating zone of CVD. SCNFs were synthesized by decomposition of acetylene gas on the prepared catalyst, while 1.5 g of sulfur powder (in a ceramic boat) was placed in the first heating zone. The second zone’e temperature was reached to 600 °C while the sulfur container temperature (1st zone) was changed from room temperature to 200 °C in an argon atmosphere. Then, in SCNFs growth stage, the temperature of the second zone was kept constant. Subsequently, the sulfur container temperature (1st zone) was raised to 550 °C. In this step, the 50% argon flow was replaced by acetylene (150 mL/min) for 45 min. Then, the substrates were cooled slowly to room temperature in argon ambient and SCNFs are collected as a black powder. The product was purified simply by washing with concentrated hydrochloric acids for catalyst removal and washed with distilled water several times.

2.3 Electrochemical analyses

5.0 mg of prepared SCNFs was dispersed in DMF (1 mL) with sonication for 15 min. Before the modification of the glassy carbon electrode (GCE), it has been prepared by polishing, washing and drying. The GCE was modified with SCNFs by micro-injecting the SCNFs suspension (3 μL) on a fresh GCE and drying at room temperature for 24 h to prepare SCNFs/GCE. Further modification of SCNFs/GCE was followed by the electrodeposition of gold nanoparticles, using cyclic voltammetry (CV) (12 cycles) in −1.00 to 0.50 V with 50 mV/S scan rate, from a solution containing 1 × 10−4 M HAuCl4 prepared in 0.01 M KCl, which prepared in double-distilled water. Then, the fabricated AuNPs/SCNFs/GCE electrode was rinsed with deionized water and dried. The cyclic voltammogram for electrochemical deposition of gold nanoparticles on SCNFs/GCE has shown in Fig. S1.

3 Results and discussion

3.1 Characterization of spinel ferrites (catalysts)

The structures of spinel ferrites, NiF2O4, Ni0.5Zn0.5Fe2O4 and ZnFe2O4, were examined by FT-IR and UV-Vis spectroscopy, as shown in Fig. S2 in supporting information. These materials were synthesized based on the previous reports and we used only these simple experiments to confirm our procedure’s correctness. In the FT-IR spectra, the ferrites’ absorption bands are in good agreement with previously reported results [33]. The absorption band at 692 cm−1 shows Fe–O stretching in a tetrahedron and at 472 cm−1 is related to that vibration at octahedral structure. These absorption peaks are typical signals showing the structure of inverse spinel ferrites [34].

Figure S2 in the Supporting Information shows the UV-Vis diffuse reflectance spectroscopy (DRS) of NiF2O4, Ni0.5Zn0.5Fe2O4 and ZnFe2O4 nanoparticles. Some absorption bands (at 296, 284 and 282 nm) have been observed for these nanoparticles. This future is related to 6A1 → 4T2 (4G) transition for the ferric ion [35].

3.2 Synthesis and characterization of SCNFs

For each CVD experiment, there are several minor parameters (flow rates of carrier and reagent gases, temperature program for heating and cooling steps, the value of catalyst …) that generally should be optimized in the preliminary experiments. After obtaining the optimized minor parameters, the growth temperature should be optimized as a major parameter. Based on the previous experiment, two temperatures, 600 and 800 °C, were used for the growth step using zinc ferrite catalyst. Moreover, three different ferrites (NiF2O4, Ni0.5Zn0.5Fe2O4 and ZnFe2O4) have been examined to obtain the best catalyst for this process. Therefore, four experiments were designed to optimize these parameters and the obtained products were analyzed using FESEM, EDS and Raman analyses. In these experiments, NiFe2O4 at 600 °C, Ni0.5Zn0.5Fe2O4 at 600 °C, ZnFe2O4 at 600 °C and ZnFe2O4 at 800 °C (respectively a to d) have been chosen as the growth’s catalyst and temperature.

By observing these images (Fig. 1a–c) and based on the product’s morphology, the catalytic activities of applied ferrites at 600 °C for the preparation of SCNFs have not meaningful differences. The external diameters of the obtained products are about 100 nm (Fig. 1a–c). Based on the type of ferrite surface, the product’s morphology has been changed. In the SCNFs obtained with NiF2O4 catalysts (Fig. 1a), the fibers’ diameters are more homogeneous. It is clearly visible from the images of grown SCNFs on ZnFe2O4 (Fig. 1c) that two shapes could be observed for the product. The first shape has 35 nm diameter and the second shape has 500–600 nm diameters. As previously demonstrated by Dhand et al., the rising of growth temperature from 600 to 700 °C, could change the morphology of grown carbon on the ferrites’ surface [36]. Figure 1d shows only the spherical carbon particles with approximately 500–700 nm diameters. These spherical carbons were grown from ZnFe2O4 at 800 °C. Based on the results of these analyses, products a and b have been selected as the most appropriate products.

Fig. 1
figure 1

The FESEM images of all carbon materials prepared at different conditions; top left: SCNFs using NiFe2O4 as the growth catalyst at 600 °C; top right: SCNFs using Ni0.5Zn0.5Fe2O4 as the growth catalyst at 600 °C; below left: SCNFs using ZnFe2O4 as the growth catalyst at 600 °C; and below right: carbon spheres using ZnFe2O4 as the growth catalyst at 800 °C

The EDS analysis was also performed for all products (a-d) and the results were shown in Fig. 2. ‌Besides, the complete results of the EDS analysis are shown in Table S1 in the supporting information. The EDS analyses confirm the existence of sulfur atoms in the structure of these compounds and in all of these analyses, only carbon, sulfur and oxygen (because of the partial surface oxidation) atoms are existed in the structures. Based on these results, the percentage of the sulfur atom in the structure of SCNFs from NiF2O4 at 600 °C (a), SCNFs from Ni0.5Zn0.5Fe2O4 at 600 °C (b) and SCNFs from ZnFe2O4 at 600 °C (c) and 800 °C (d) are respectively 7.72, 30.46, 5.29, and 24.25 wt. %. The sulfur contents of products b and d are strangely higher than the standard content for the doped products and these products were completely neglected (. Despite them, products a and c have acceptable sulfur content values and these products are more appropriate than the other products, based on the EDS analyses.

Fig. 2
figure 2

The EDS spectra of all carbon materials prepared at different conditions; (a) SCNFs using NiFe2O4 as the growth catalyst at 600 °C; (b) SCNFs using Ni0.5Zn0.5Fe2O4 as the growth catalyst at 600 °C; (c) SCNFs using ZnFe2O4 as the growth catalyst at 600 °C; (d) carbon spheres using ZnFe2O4 as the growth catalyst at 800 °C

Figure 3 shows the Raman spectra of carbons deposited on the NiF2O4, Ni0.5Zn0.5Fe2O4 and ZnFe2O4. Both D and G bands could be observed in these spectra. The ID/IG ratio in product a is less than the other products. Therefore, this product has more appropriate than the other products, based on the Raman analyses.

Fig. 3
figure 3

Raman spectra of products (a)–(d). The written numbers are showing the intensities of the bands. (a) SCNFs using NiFe2O4 as the growth catalyst at 600 °C; (b) SCNFs using Ni0.5Zn0.5Fe2O4 as the growth catalyst at 600 °C; (c) S CNFs using ZnFe2O4 as the growth catalyst at 600 °C; (d) carbon spheres using ZnFe2O4 as the growth catalyst at 800 °C

After the above analyses, product a (SCNFs produces from NiF2O4 at 600 °C) was selected as the best product and further characterizations were made on this structure. Figure 4 shows the TEM micrographs of SCNFs synthesized by NiF2O4 as a catalyst at 600 °C (a). The shown images confirm the expected morphology of the SCNFs, as they previously observed in the FESEM images. The diameters of the produced fibers are 50 nm on average.

Fig. 4
figure 4

The TEM images of a selected carbon material (SCNFs prepared using NiF2O4 as a catalyst at 600 °C)

To examine the thermal behavior of the selected product, TGA analysis was employed under the inert atmosphere, because the thermal stability of the new materials is important. Figure 5 shows the TGA curves of the selected product (a). The total weight loss of the product is less than 8% up to 800 °C, which shows the product’s high thermal stability. The obtained diagram does not consist of separate steps, but the weight loss at the temperature range of 50–150 °C (1.0%) could be attributed to the desorption of trapped water. Other losses could be due to surface functional fragmentation, trapped organic parts and surface adsorbed materials.

Fig. 5
figure 5

The TGA diagram of a selected carbon material (SCNFs prepared using NiF2O4 as a catalyst at 600 °C)

Figure 6 shows the XRD pattern of the product. According to this analysis, the standard pattern for graphite has been observed, according to two peaks at  = 26° and 43° [36]. From this pattern, the obtained SCNFs were confirmed to agree with the stacking structure of parallel graphitic layers in SCNFs. The (100) plane shows a peak at  = 43 °C and (101) plane showed another peak at  = 44 °C, that is confirming the structure of SCNFs [36].

Fig. 6
figure 6

The XRD pattern of a selected carbon material (SCNFs prepared using NiF2O4 as a catalyst at 600 °C)

The next performed analysis was X-ray photoelectron spectroscopy (XPS) to determine the product’s elemental composition and bonding analysis. These experiments’ results were depicted in Fig. 7a–e, which shows several peaks related to the presence of oxygen, carbon and sulfur atoms. The existence of these peaks confirms the sulfur doping and carbon structure of the product. Moreover, high-resolution spectra for C1s (Fig. 7b), O1s (Fig. 7c), sulfur S2s (Fig. 7d) and sulfur S2p (Fig. 7e) were shown below the major spectrum. These spectra confirm the presence of C=C/C–C, related to the conjugated honeycomb lattice, by the observed peak at 282.9 eV. Moreover, they confirm the presence of C–S bond by observing the peak at 286.5 eV, confirming the covalent doping of sulfur atom. The presence of oxygen atom is related to the partial surface oxidation of the product during its purification.

Fig. 7
figure 7

The XPS spectra of a selected carbon material (SCNFs prepared using NiF2O4 as a catalyst at 600 °C); (a) total spectrum; (b) carbon; (c) oxygen; (d) sulfur S2s and (e) sulfur S2p

3.3 Electrochemical deposition of gold nanoparticles on product a

After the successful synthesis and characterization of the SCNF, the product (a) was electrochemically decorated with gold nanoparticles to prepare the final product for morphine detection. The product was analyzed with FESEM and EDS analyses and the results were depicted in Fig. 8. As it is clear from these images, the deposition of gold nanoparticles was successfully performed and this deposition has not been changed the morphology of the product. Maintaining the structural form of these fibers reflects their stability during the process. Gold nanoparticles could be observed in these images as small particles on the surface of the fibers. Moreover, the EDS spectrum clearly shows the presence of gold on these structures. Based on the EDS results, the presence of carbon, gold, sulfur, and oxygen in this structure is respectively 94.4, 0.4, 1.4 and 0 wt. %, which shows the decrease of surface oxygen and sulfur content after the decoration of the product with gold.

Fig. 8
figure 8

The FESEM images and EDS analysis of the final product (product a, decorated with gold nanoparticles)

3.4 Electrochemical behavior of the final product for morphine sensing

In the final part of this study, the electrochemical behaviors of product a (SCNFs) and the final product (gold decorated product a, AuNPs/SCNFs) were examined. For this purpose, modified GCE by these products were used in morphine sensing. Since the oxidation of morphine could produce a positive peak, its electrochemical detection is one of the most frequent choices in this respect. This experiment has been performed using the modified GCE with SCNFs to obtain the electrochemical diagrams related to morphine detection. 10 mVs−1 scan rate for potential in the range of −1.0 to 1.0 V of was used in aqueous solution. In Fig. 9, the cyclic voltammograms (CVs), recorded in 1 mM potassium ferrocyanide solution, for simple GCE (A), SCNFs/GCE (B) and AuNPs/SCNFs/GCE (C) have been shown. It can be seen that bare GCE (Fig. 9A) showed a signal for the reversible and diffusion-controlled redox reaction. As is shown in this figure, the oxidation of Fe2+ to Fe3+ at the bare GCE shows an anodic signal at 0.56 V. GCE’s modification increases the peak current from 30 to 48 and 68 μA, respectively for SCNFs/GCE and AuNPs/SCNFs/GCE. Moreover, the overvoltage of the anodic signal was decreased and the value of potential was changed to the smaller amounts. Obviously, both of these modifications, especially AuNPs/SCNFs/GCE, facilitate the GCE’s sensing.

Fig. 9
figure 9

Cyclic voltammogram of 1 mM K4[Fe(CN)6]/K3[Fe(CN)6] (1:1) obtained from bare GCE (A), SCNFs/GCE (B) and AuNPs/SCNFs/GCE (C)

To study the activity of electrodes before the morphine analysis, cyclic voltammetry (CV) studies were performed in Britton-Robinson buffer at room temperature by scanning the potential between −1.0 and 1.0 V (Fig. 10). Using the buffer pH = 9.8, the maximum signal enhancement with the optimum shape of the peak was observed (Fig. 10). In Fig. 11, the CV diagram of simple GCE (A), modified GCE with SCNFs (B) and modified GCE with AuNPs/SCNFs (C) in the presence of 1 × 10−4 M morphine at pH = 9.8 were shown. A clear anodic signal was observed at 0.8 V in the presence of morphine from the GCE vs. Ag/AgCl, while no cathodic signal related to the irreversible or reverse processes has been observed (Fig. 11A). The height of the anodic peak with appealing SCNFs/GCE (Fig. 11B) and AuNPs/SCNFs/GCE (Fig. 11C) as the working electrode increased by 7.5 and 13.5 μA, respectively.

Fig. 10
figure 10

Cyclic voltammogram from bare GCE (A), SCNFs/GCE (B) and AuNPs/SCNFs/GCE (C) in Britton-Robinson buffer (pH = 9.8)

Fig. 11
figure 11

The obtained cyclic voltammogram from bare GCE (A), SCNFs/GCE (B) and AuNPs/SCNFs/GCE (C) in the presence of 1 × 10−4 M morphine (pH = 9.8)

Modifications of GCE with our product have increased the peak current, decreased the value of anodic overvoltage and changed its potential to smaller values (for SCNFs/GCE (Fig. 11B) and AuNPs/SCNFs/GCE (Fig. 11C), 0.77 and 0.73 V respectively).

The voltammetric measurements were obtained using square-wave voltammetry (SWV) from bare GCE (A), SCNFs/GCE (B) and AuNPs/SCNFs/GCE (C) versus Ag/AgCl in the presence of 1 × 10−4 morphine at pH = 9.8 (Fig. 12). The peaks related to the oxidation of morphine were obtained at 0.32, 0.38 and 0.40 V, respectively for SWV at bare GCE (Fig. 12A), SCNFs/GCE (Fig. 12B) and AuNPs/SCNFs/GCE (Fig. 12C). These characteristics were significantly superior to those obtained for GCE, which indicates the ease of sensing process on the SCNFs/GCE and AuNPs/SCNFs/GCE. Consequently, the best result was achieved by the electrodeposition of gold nanoparticles on SCNFs/GCE (AuNPs/SCNFs/GCE).

Fig. 12
figure 12

SWV voltammogram from bare GCE (A), SCNFs/GCE (B) and AuNPs/SCNFs/GCE (C) in the presence of 1 × 10−4 M morphine (pH = 9.8)

4 Conclusions

In this study, a room temperature method has been used for the synthesis of Ni, Ni/Zn and Zn ferrites nanoparticles. Various shapes for the produced carbon structures have been observed using ferrite nanoparticles as a growth catalyst of the CVD process to prepare of SCNFs. Furthermore, a GCE was modified with the immobilization of synthesized SCNFs. This electrode is also modified by the electrodeposition of gold nanoparticles. The AuNPs/SCNFs-modified GCE showed appropriate electrochemical behaviors for the oxidation of morphine. It was proved that this electrode has high abilities for detecting morphine, in addition to its promising stability. The most important benefits of the presented methodology are its simplicity and fast detection.