Introduction

Heavy metal like lead and cadmium ions are generally discharged into the environment from different industrial activities including ceramics, pulp, metal finishing, lead smelters, mining, electroplating, battery industrialization and other activities [1,2,3,4]. The existence of these heavy metals in their ionic forms in water represents an extremely health hazard to human due to their persistence and non-biodegradability characters [5,6,7]. These toxic ions can permeate the human cell from water and foods causing severe clinical manifestations such as cancer, damage to the central nervous system, lung, brain and death [8]. Therefore, it is important to treat polluted water from metal ions before release and influx into the environment.

Adsorption technology is amongst several other well-known approaches commonly employed to extract metal ions from water [9]. The adsorption technique is listed as the best due to low cost, simple operation and high efficiency with the advantage of potential regeneration of the used sorbent [10]. The literature survey points to a plenty of applicable organic and inorganic sorbents in removal and water treatment of heavy metals. The inorganic sorbents are mainly including metal oxides (MOs) such as silicon, titanium, aluminum and iron oxides [11]. Chitosan, chitin, cellulose polymers and polyaniline (PANI) are examples of the organic sorbents [12]. Recently conducting polymers such (PANI) and nanopolyaniline (NPANI) as well as their composites have gained substantial interests due to outstanding performance with regard for metal sorption because of the existence of several functional groups, low cost, simple synthetic approaches [13]. PANI composites have been implemented as efficient sorbents for extraction of inorganic pollutants such as toxic metal ions from solutions [14].

For instance, A sol–gel method was described to synthesize polyaniline Sn(IV) tungstomolybdate and successfully used for removal of lead [15]. A composite was prepared using PANI/polypyrrole/hexagonal-mesoporous silica (PANI/PPy/HMS), characterized and investigated for cadmium adsorption and removal from solutions [16]. A sol–gel mixing procedure of (PANI) into Zr(IV) molybdophosphate (ZMP) was used to prepare polyaniline-Zr(IV) molybdophosphate (PAZMP) and the distribution of investigated metal ions indicated that this composite is substantially selective for nickel [17]. The sorption characteristics of cobalt ions from solutions by PANI/polypyrrole copolymer nanofibers were studied by the batch method and the removal efficiency was identified as 99.68% [18]. Removal of rubidium ion from solution was studied and explored using nanocomposite material of modified (PANI) with cobalt-prussian blue analogues (Co-PBA) [19]. Adsorptive removal of arsenic in different batch experiments was reported using novel synthesized nano-polyaniline/Fe0 composite by reductive deposition of nano-Fe0 onto the polyaniline nanofibers matrix at room temperature [20].

The implementations of PANI composites and derivatives as effective sorbents for removal of inorganic and organic pollutants from solutions have been also reported. For example, a chemical oxidative polymerization method was used to synthesize starch/PANI nanocomposite and subsequently tested for effective color removal of reactive violet 4 and reactive black 5 from solutions by the batch experiment [21]. A polymerization process was implemented to functionalize and coat polyaniline with Fe3O4 for the formation of (Fe3O4@PANI) composite in a simple two-step method and this material was employed to investigate the adsorptive removal reactions of naphthol derivatives and phenol from water samples [22]. PANI coated on lignocellulose composite was made via in-situ polymerization of aniline and used to adsorb reactive black 5 from solutions [23]. In addition, other polyaniline sorbents have been recently reported in the adsorption technique of different pollutants [24,25,26,27].

The adsorption isotherm data is an essential measure to calculate the adsorption performance by utilizing different model. Several two parameters isotherm models are generally used to explain the adsorption data including the Langmuir, Freundlich, Temkin and Dubinin-Radushkevich. On the other hand, three parameters isotherm models such as Redlish-Peterson, Sips, Toth and Khan are also employed [28,29,30]. Generally, that portend the isotherm constants for an adsorption system and two processes are available. First is the linear method of isotherm data that is converting the isotherm equation to a linear form to find out the parameters. Second is the nonlinear method of isotherm data, which is subjected to their best accepting of the isotherm equation in its nonlinear form to the experimental result. However, depending on the linearization expression of the isotherm equation, the distribution of error changes either to the worst or to the superior [31]. Additionally, the linear regression method is not permanently a good option to apply for isotherms with more than two parameters. Therefore, several researchers have applied the method of nonlinear regression to evaluate the best accepting isotherm model. This approach is aimed to minimize the error distribution between the experimental adsorption data and the portend isotherm model. It has a particularity that the error distribution does not get altered as in linear regression method because all isotherm parameters are fixed on the same axis [32]. In addition, various error functions are utilized to estimate the isotherm data by nonlinear regression method. The most popular error functions are namely, the nonlinear Chi square test (X2),the sum of the squares error (SSE), the average relative error (ARE), the sum of the absolute errors (EABS) and the hybrid fractional (HYBRID).

In this study, nanosilica (NSi) material was functionalized with nitrogen rich (NPANI) and (CrossNPANI) using formaldehyde for the formation of two novel nanocomposites, [NSi-NPANI] and [NSi-CrossNPANI]. The two functionalized nanocomposites were characterized and compared with (NSi) sorbent using SEM, FT-IR, TEM, TGA and surface area determination. In addition, the experimental data were manipulated to appraisal the nonlinear and linear regression isotherm, kinetics models and thermodynamics parameters. This work aims also to report the potential implementations of [NSi-NPANI] and [NSi-CrossNPANI] nanocomposites in the removal of cadmium and lead from solutions and different water specimens by the batch and multistage micro-column techniques in existence of diverse controlling parameters.

Experimental

Chemicals and Solutions

Silica gel nanoparticles (10–20 nm, specific surface area 140–180 m2/g (BET) and assay 99.5%) were purchased from Aldrich Chemical Company, USA. Potassium persulphate (KPS) was purchased from Oxford, India (assay 98.9% and FW = 270.31). Aniline was obtained from Lobachemie, India. Aqueous solutions (0.1 mol L−1) of metal ions were prepared in 1.0 L by dissolving the corresponding mass of the following salts. Anhydrous cadmium chloride (assay 99.9% and FW 183.32) and lead acetate trihydrate (assay 99.99%, and FW 379.33) were purchased from BDH, UK, respectively. The concentrations of these metal ion solutions were analyzed by complexometric titration with 0.01 mol L−1 of EDTA (assay 99.0–101.0%, and FW 372.24) solution using the applicable buffer and indicator.

Instrumentations

Fourier transform infrared spectroscopic analysis (FT-IR) of NSi and nanocomposites were studied by a BRUKER Tensor 37. Thermal gravimetric analysis (TGA) of [NSi], [NSi-NPANI] and [NSi-CrossNPANI] were measured using a Perkin-Elmer TGA7 Thermobalance. The selected operating conditions are temperature heating range (20–800 °C), heating rate (10 °C min−1), flow rate (20 mL min−1) pure nitrogen atmosphere. Scanning electron microscope (SEM) JSM-5300-JEOL model and High resolution-transmission electron microscope (HR-TEM) JEM-2100 model were used to study the surface morphology and particle size of [NSi], [NSi-NPANI] and [NSi-CrossNPANI]. Surface area analysis of NSi and other nanocomposites were accomplished by using the BET method (Nova 3200 Nitrogen physisorption Apparatus, USA). The low concentration levels of divalent ions were measured by utilizing a Perkin Elmer flame atomic absorption spectrophotometer (PEFAAS), (model 2380).

Synthesis of NPANI and CrossNPANI

NPANI was prepared according to the following procedures. Aniline (7.0 mmol) was combined with 20.0 mL of distilled water (DW) and kept under stirring at room temperature (RT) for 10 min. This mixture was then maintained with stirring at 0–5 °C for 30 min. 7.0 mmol of potassium persulfate (KPS) was dissolved in 80 mL of DW and added as one portion to the aniline solution and stirred for another 1 h. This solution was kept at 0–5 °C to 24 h. The prepared polymer was collected, washed with DW and ethanol several times and dried under vacuum at 50 °C to produce the aimed material, NPANI. CrossNPANI was produced by heating NPANI at 180 °C for 3 h as previously described [33].

Synthesis of NSi-NPANI and NSi-CrossNPANI

The chemically attachment of NSi and NPANI was accomplished using formaldehyde. [NSi-NPANI] was prepared according to the following procedures. 2.0 g of NPANI was mixed with 10.0 mL of formaldehyde (CH2O) and this mixture was heated with 3.0 mL of 1.0 mol L−1 of hydrochloric acid (HCl). 5.0 g of NSi was then added to this mixture and heated at 80 °C with continuous stirring for 2 h. The resulting material was left at RT for 12 h, collected, washed with ethanol several times and dried under vacuum at 70 °C until complete dryness. The possible structure of [NSi-NPANI] is represented in Scheme 1.

Scheme 1
scheme 1

The possible structure of [NSi-NPANI] nanocomposite

Synthesis of NSi-CrossNPANI

2.0 g of CrossNPANI was mixed with 10.0 mL of formaldehyde (CH2O) and 3.0 mL of 1.0 mol L−1 of hydrochloric acid. This mixture was heated with stirring for 2 h in presence of 5.0 g of NSi at 80 °C. The resulting nanocomposite was left at RT for 12 h then collected, washed with ethanol several times and dried under vacuum at 70 °C until complete dryness. The possible structure of [NSi-CrossNPANI] is represented in Scheme 2.

Scheme 2
scheme 2

The possible structure of [NSi-CrossNPANI] nanocomposite

Sorption Studies

Batch equilibrium method was performed to examine the availability of newly prepared and functionalized modified NSi for sorption and uptake of cadmium and lead ions. The influence of pH, contact time and starting metal concentration were studied according to the following procedures.

The Effect of pH

All batch sorption experiments were achieved at (25 ± 1 °C). Each experiment was performed in a 50 mL volumetric flask by combining a 1.0 mL of 0.1 mol L−1 metal ion solution with 10 ± 1 mg of the selected NSi, [NSi-NPANI] or [NSi-CrossNPANI] nanocomposite and adding 9.0 mL of acidic or neutral buffer solution (pH 1.0–7.0). The mixture was shaken by an automatic shaker for 30 min then separated by filtration and washed with 50 mL of DW. The remaining metal ions were measured by EDTA titrations and each experiment was duplicated several times. The sorption capacity value was calculated by Eq. (1).

$$q\,=\,\frac{{({{\text{C}}_0} - {\text{C}}){\text{V}}}}{{\text{m}}}\, \times \,{10^3}$$
(1)

where, Co and C (mol L−1) are the starting and remaining metal ion concentration, respectively, V is the volume of the sorption reaction in mL, m is the mass of dry a nanocomposite in gram and q (µmol g−1) is the metal sorption capacity that represents the quantity of metal ion (µmol) adsorbed per gram of NSi, [NSi-NPANI] or [NSi-CrossNPANI] nanocomposite (Scheme 3).

Scheme 3
scheme 3

Metal binding with [NSi-NPANI] nanocomposite

Effect of Contact Time

The previously characterized batch experiment was accomplished using various shaking times (1, 5, 10, 15, 20, 25 and 30 min) at optimum buffering status of each metal sorption. A 1.0 mL of divalent metal ion (0.1 mol L−1) solution was mixed with 10 ± 1 mg of [NSi-NPANI] or [NSi-CrossNPANI] followed by adding (9.0 mL) of the optimum buffer and shaken by an automatic shaker for the selected period of time. The separated metal ions by filtration were washed with 50 mL of DW. The metal sorption capacity was calculated by duplication the steps as before.

Sorption Isotherm

In this study, the sorption equilibrium of ions onto [NSi-NPANI] and [NSi- CrossNPANI] was analyzed as a function of ion concentration (0.01–0.2 mol L−1). The divalent ion solution was combined with 9.0 mL of the optimum buffer conditions solution. A 10 ± 1 mg of the modified NSi was added to this mixture and automatically shaken for 30 min. The mixture was filtered and washed three times with 50 mL of DW. The remaining concentration of ion was measured by EDTA titrations and the metal sorption capacity data were calculated on the basis of triplicate analysis. The sorption isotherm results were examined by utilizing six various isotherm models: Four two-parameter sorption isotherm models as Langmuir, Temkin, Dubinin-Radushkevich (D-R), Freundlich and two three-parameter sorption isotherm models as Sips and Redlich-Peterson (R-P).

Thermodynamic Study

The sorption experiments were performed at temperature values 293, 303, 313, and 323 K to determine the thermodynamic parameters (∆Go, ∆Ho, ∆So) according to the next steps. A 1 mL solution of divalent ion (cadmium or lead) of known starting concentration (0.01–0.2 mol L−1) was mixed with 10 ± 1 mg of [NSi-NPANI] or [NSi-CrossNPANI] and 9.0 mL of the optimum buffer condition for each metal ion. This mixture was shaken at the chosen temperature for 30 min and the remaining concentration of divalent ions was determined as illustrated above.

Adsorptive Removal of Metal Ions from Different Water Samples

Various water specimens (tap water, sea water and industrial wastewater from AL-Nubariya canal) were collected and utilized to calculate the efficiency of NSi and modified NSi for extraction of two divalent ions. Three water specimens were collected and spiked with cadmium or lead ions and 1 L of each sample was passed over a micro-column system packed with 100.0 ± 1.0 mg of NSi, [NSi-NPANI] or [NSi-CrossNPANI] under air pressure and flow rate of 10 mL min− 1. The effluent solution was estimated by atomic absorption analysis (AAA). This procedure was reiterated several times and the average percentage values (%E) of extracted metal ion were calculated according to Eq. (2).

$$\% {\text{E}}\,=\,\frac{{({{\text{C}}_0} - {\text{C}})}}{{{{\text{C}}_0}}}\, \times \,100$$
(2)

where, Co and C (mg L−1) are the starting and eventual divalent ion concentration, respectively.

Result and Discussion

Characterization

The FT-IR spectra of [NSi], [NSi-NPANI] and [NSi-CrossNPANI] are represented in Fig. 1. Several characteristic bands in the range 3423–3439 cm−1 are characterized and mainly due to the presence of different symmetrical stretching modes of functional groups such as amine (N-H) and hydroxyl (OH). The FT-IR spectrum of [NSi] exhibited some characteristic peaks which are related to hydroxyl groups on the surface (Si-OH) at 3437 cm−1, asymmetric stretching of Si-O-Si at 1074 cm−1, symmetric stretching at 806 cm−1, and bending at 462 cm−1. The obtained peak at 2347 cm−1 may be assigned to (Si-H) group [34]. The FT-IR spectrum of modified nanocomposite, [NSi-NPANI] is also shown in Fig. 1. The FT-IR spectrum of [NSi-NPANI] exhibited several characteristic peaks such as C=N and C=C bonds at 1610 and 1496 cm−1 which are also related to the quinonoid and benzenoid structures, respectively. The observed wide peak at 1109 cm−1 is fundamentally due to (Si-O-C-). Moreover, the vibrational bands at 470, 615 and 808 cm−1 overlap together to give two small bands at 806 and 599 cm−1 due to the conversion of (-NH-) into (-N-C-) by the crosslinker (formaldehyde CH2O) [35]. The FT-IR spectrum of [NSi-CrossNPANI] refers to the opening of the quinone due to the peak at 1599 cm−1 and shorter compared to the benzenoid band at 1498 cm−1. The weak intense peak of Si-O-C and Si-OH bonds and their shifts to 1097 and 3431 cm−1, respectively are mainly produced as a result of coating silica with Cross NPANI.

Fig. 1
figure 1

FT-IR spectra of [NSi], [NSi-NPANI] and [NSi-CrossNPANI] nanocomposites

The TGA data of [NSi], [NSi-NPANI] and [NSi-CrossNPANI] were also studied and evaluated. The TGA of [NSi] was found to refer to the existence of only one degradation step at the temperature < 477.1 °C. The % loss of this degradation step was found as 1.371% due to desorption of some adsorbed H2O molecules from the surface of [NSi] and this indicates that [NSi] sorbent is highly stable in the studied temperature range of 50–800 °C. The TGA-thermogram of [NSi-NPANI] nanocomposite is clearly referring to the existence of three successive thermal degradation steps. The first decomposition was produced in the temperature range 28.1–79.2 °C that is related to desorption of surface loaded water molecules and the identified percentage loss of this step is 4.035%. The second decomposition step is mainly focused on the temperature range 79.2–497.7 °C with a percentage loss corresponding to 11.061%. The third decomposition step is focused on the temperature range 497.7–732.7 °C with a percentage loss corresponding to 15.843%. The second and third decomposition steps are generally produced by the facile thermal decomposition of the loaded organic molecule, NPANI, from the surface. The total percentage loss of NPANI from [NSi-NPANI] is 26.904% and this value refers to the loaded amount of NPANI on this nanocomposite. The TGA of [NSi-CrossNPANI] nanocomposite was found also to produce three major degradation steps. The first thermal decomposition step is identified at temperature < 128.9 °C with 13.317% loss due to desorption of some adsorbed H2O molecules from the surface of this crosslinked nanocomposite. The second and third thermal decomposition steps were characterized at temperature < 417.4 and 647.4 °C with the percentage loss values of 8.383 and 28.906%, respectively. The total degradation of loaded CrossNPANI from the surface of [NSi-CrossNPANI] can be deduced as 37.289%.

The surface morphology and imaging of [NSi], [NSi-NPANI] and [NSi-CrossNPANI] nanocomposites are represented in Fig. 2. These images confirm that nanosilica exhibited regular and homogenous shape. However, the SEM-image of [NSi-NPANI] nanocomposite is brighter and smoother than the image of [NSi] and this gives a good evidence for the surface coating of silica with the target material. The SEM-image of [NSi-CrossNPANI] nanocomposite is also brighter and smoother than other nanocomposites. Finally, all of these observations prove the success of crosslinking of NPANI and CrossNPANI on nanosilica matrix.

Fig. 2
figure 2

SEM and HR-TEM images of a [NSi], b [NSi-NPANI] and c [NSi-CrossNPANI]

In addition, the TEM images of [NSi], [NSi-NPANI] and [NSi-CrossNPANI] are shown in Fig. 2 at magnification orders of 60,000. It is evident that the particles are formed in aggregates in a linked shape. The detected range of particle size of [NSi-NPANI] was characterized as 14.28–21.43 nm, while that of [NSi-CrossNPANI] was found in the range 26.19–35.71 nm.

The surface area determination of [NSi], [NSi-NPANI] and [NSi-CrossNPANI] nanocomposites was also performed using the multipoint BET method. [NSi] sorbent was found to exhibit a large surface area according to the multipoint BET method by giving 2.126 × 102 m2 g−1. The pore volume and pore size values of [NSi] sorbent were found to correspond to 3.730 × 10−1 cc g−1 and 9.620 Å, respectively. The [NSi-NPANI] was found to show a large surface area according to the multipoint BET method as 2.458 × 102 m2 g−1. However, the pore volume and pore size values of [NSi-NPANI] were identified as 3.630 × 10−1 cc g−1 and 9.664 Å, respectively. Finally, the [NSi-CrossNPANI] was found to show a large surface area according to the multipoint BET method as 1.438 × 102 m2 g−1. The pore volume and pore size values were characterized as 2.902 × 10−1 cc g−1 and 8.544 Å.

Sorption Studies

Effect of pH

The pH of aqueous metal ion solution is well known as an important factor in the sorption process by different sorbents [36,37,38]. The effect of pH on sorption processes of cadmium and lead by the newly designed and functionalized [NSi-NPANI] and [NSi-CrossNPANI] nanocomposites were studied and compared with [NSi] using the pH range from 1.0 to 7.0 at 25 °C. Table 1 compiles the collected metal sorption capacity values of cadmium and lead. The collected data indicate that [NSi-NPANI] and [NSi-CrossNPANI] are superior to [NSi] in the process of adsorptive removal of the investigated metal ions in all evaluated pH values. The two functionalized [NSi-NPANI] and [NSi-CrossNPANI] nanocomposites are regarded as a combination of different functional groups that are capable of pointing diverse coordination complexes and/or ion exchange reaction with metal ions. The functional groups accountable for binding with the target divalent metal ions are generally in the form of the amine (-NH) and hydroxyl (-OH). The results of this study refer to the general rule whereas, the higher pH, the high degree of these functional groups deprotonation will be and hence the larger numbers of negative binding positions are directed towards metal ion interaction [39]. The maximum metal capacity values of cadmium and lead were found to agree to 1000 μmol g−1 (pH 6.0) and 1350 μmol g−1 (pH 6.0) μmol g−1 using [NSi-CrossNPANI], respectively. In the same way, the maximum metal capacity values of cadmium and lead were found to correspond to 750 and 800 μmol g−1 using [NSi-NPANI], respectively at pH 7.0. Otherwise, [NSi] exhibited the metal sorption capacity values of cadmium and lead as 400 and 500 µmol g−1, respectively at pH 7.0. Therefore, the order of metal capacity of the investigated and evaluated metal ions by the newly designed silica nanocomposites can be listed in the following order: [NSi-CrossNPANI] > [NSi-NPANI] > [NSi].

Table 1 Effect of pH on sorption capacity values of different metal ions

Effect of Shaking Time

The effect of time on sorption processes of cadmium and lead by [NSi-NPANI] and [NSi-CrossNPANI] is shown in Fig. 3, respectively and this controlling parameter was studied by the batch technique using different shaking time intervals in the regulating time from 1 to 30 min. All metal ions were found to display a general trend in which the sorption process reaches a maximum value with the increase in contact time from 1 to 15 min. This step involves a rapid elevate in the metal sorption capacity of the metal ions onto nanocomposites owing to the abundant and availability of active binding sites on the surface. After 15 min, with the gradual occupancy of these positions, the metal ions sorption becomes less efficient leading to reach maximum sorption at 30 min [40]. The maximum sorption capacity values of cadmium by [NSi-NPANI] and [NSi-CrossNPANI] were 750 and 1000 µmol g−1, respectively. Finally, the equilibrium time for maximum sorption capacity value of lead by [NSi-NPANI] and [NSi-CrossNPANI] identified as 800 and 1300 µmol g−1 at 30 min, respectively.

Fig. 3
figure 3

Effect of contact time on using [NSi-NPANI] and [NSi-CrossNPANI]

Adsorption Equilibrium of [NSi-NPANI] and [NSi-CrossNPANI] by Different Models

The adsorption isotherm recognizes how the quantity of molecules are suspended between the solid and liquid phase when the adsorption operations reach balance. It portends important information about the main mechanisms included in the extraction of divalent ions such cadmium and lead when reacting with the nanocomposite such as newly designed [NSi-NPANI] and [NSi-CrossNPANI] nanocomposites. Therefore, the equilibrium adsorption operations were determined in terms of divalent ion concentration. The isotherm equilibrium data were investigated using six various adsorption isotherm models focused on four 2-parameter models as Langmuir, Freundlich, Dubinin-Radushkevich (D-R), Temkin, and two 3-parameter models as Redlich-Peterson and Sips. The equations representing theses six models are compiled in Table S1 (Supplementary materials).

The Langmuir isotherm theory supposes the monolayer of adsorbate molecules surrounding a homogeneous adsorbent surface where all adsorption sites are found to be analogous and energetically tantamount. The Freundlich isotherm model is generally used to depict the adsorption for multilayers on a heterogeneous adsorbent surface in the solution. Apart from these, the D-R model is usually applied to recognize between the physical and chemical adsorption processes of metal ions. Finally, the Temkin isotherm model supposes that the reduction in the heat of adsorption is linear and its derivation is characterized by a uniform distribution of binding energies [28].

The Redlich-Peterson isotherm model combines elements from both the Langmuir and Freundlich isotherms and amends the inaccuracies. Also, it can be utilized either in homogenous or heterogeneous systems. Whereas the Sips model is combined from the Freundlich and Langmuir models. At a low concentration of divalent ions, this model is reduced efficacious to the Freundlich isotherm. It prognosticates a monolayer sorption capacity, which is characteristic of the Langmuir isotherm [28].

The nonlinear optimization method has been accomplished to determine the superior fit of different two- and three-parameters adsorption models. The optimization operation needs an error function that able to estimate the acceptance of the isotherm model to the experimental equilibrium data. In this study, five various error functions were investigated by minimizing the particular error function across the concentration range studied, using the “SOLVER ADD-IN” with Microsoft’s spreadsheet [31, 41]. The error functions used in this paper are presented in Table S2 (Supplementary materials).

Table 2 Isotherm parameters and error obtained by nonlinear fitting (two-parameter isotherm models) using [NSi-NPANI]

Figure 4 illustrates the isotherm equilibrium adsorption of cadmium and lead by newly designed [NSi-NPANI] and [NSi-CrossNPANI] nanocomposite using nonlinear analysis of Langmuir, Temkin, R-P, Freundlich, D-R and Sips. The data were fitted with Langmuir isotherm equation and the results are summarized in Tables 2, 3 and S3 (Supplementary materials). The correlation coefficients (R2) were calculated in order to compare the linear and nonlinear regression analysis results. As listed in Table 2, high correlation coefficients were derived and identified by fitting experimental data into the Langmuir model (0.9973), (0.9972) for cadmium and lead onto [NSi-NPANI], respectively, as compared with other models. The data in Table S3 refers to the highest R2-values using Langmuir model (0.9734) and (0.9976) for cadmium and lead onto [NSi-CrossNPANI], respectively.

Fig. 4
figure 4

Adsorption isotherms of metal ions by different models

Table 3 Isotherm parameters and error obtained by nonlinear fitting (three-parameter isotherm models) using NSi-NPANI and NSi-CrossNPANI

The maximum sorption capacity values (qmax) of lead and cadmium may be explicated on the basis different selectivity of metal ions to the surface functional groups. The qmax values using Langmuir model were 118.0000000 and 210.4221264 mg g−1 for cadmium and lead, respectively. These values are very close to the experimental metal capacity data, which indicates that the Langmuir model provides a good example for the sorption of lead and cadmium onto [NSi-NPANI] and [NSi-CrossNPANI].

The R2 values of lead using the evaluated isotherms confirm the follows sequence. Lead onto [NSi-NPANI] follows Langmuir (best fit) > Sips > Redlich-Peterson > Freundlich > Temkin > Dubinin-Radushkevich. On the other hand, lead onto [NSi-CrossNPANI] follows Langmuir(best fit) > Sips > Freundlich > Redlich-Peterson > Temkin > Dubinin-Radushkevich.

The linear isotherm parameters of cadmium and lead by [NSi-NPANI] and [NSi-CrossNPANI] nanocomposites are shown in Table 4. The adsorption isotherm studies obviously indicate that the adsorptive attitude of divalent ions satisfies not only the Langmuir assumptions but also the sips assumptions based on the high values of correlation coefficients as 0.9651 and 0.977 for cadmium onto [NSi-NPANI] and [NSi-CrossNPANI], respectively. These values indicate that the sorption of the lead onto two previously nanocomposites were fitted well for the Langmuir model. The Sips adsorption isotherm model equation is depicted by the dimensionless heterogeneity factor, n that can likewise be used to characterize the system’s heterogeneity when n is between 0 and 1 or close to unity. The heterogeneity factor (n) values were identified as 0.99 and 0.56 for cadmium onto the two modified nanocomposites. Therefore, the Sips equation was converted to the Langmuir equation to describe the preferential binding of metals on all sites of nanocomposites as homogeneous surfaces. In addition, a relationship between heterogeneity and affinity factors is expected. Therefore, the affinity of cadmium ions increased and were facilely adsorbed by the available donor atoms on the nanocomposites. Finally, it is significant to record that the calculated R2 values by linear analysis methods were all fewer than the corresponding R2 values obtained by nonlinear analysis methods.

Table 4 Isotherm parameters obtained by linear (two- and three-parameter isotherm models) using [NSi-NPANI] and [NSi-CrossNPANI]

Adsorption Kinetic Studies

The kinetic studies for adsorptive behaviors of cadmium and lead ions by [NSi-NPANI] and [NSi-CrossNPANI] nanocomposites were investigated by utilizing four models; the pseudo-first, pseudo-second-order, intra-particle diffusion and Elovich models. The k1, qe, K2, Kid, C, α and β factors were calculated and compiled in Table 5 and the correlation coefficients obtained from these plots are listed in Table S4 (Supplementary materials).

Table 5 Adsorption kinetic models for removal of different metal ion onto [NSi-NPANI] and [NSi-CrossNPANI]

The pseudo-first order kinetic constants for the adsorption of lead and cadmium on [NSi-NPANI] and [NSi-CrossNPANI] obtained from the slope and the intercept of the linear relevance ln(qe−qt) on y-axis and time (t) on x-axis in Table 5. The correlation coefficient value for the pseudo first-order model kinetic model cadmium was found to correspond to 0.9717 and 0.9847 onto [NSi-NPANI] and [NSi-CrossNPANI], respectively. The k1 value of the pseudo-first order was found 7.95 × 10−2 and 7.16 × 10−2 min−1 for cadmium onto [NSi-NPANI] and [NSi-CrossNPANI], respectively. The correlation coefficient value for lead was found to correspond to 0.9845 and 0.9607 onto [NSi-NPANI] and [NSi-CrossNPANI], respectively. The R2 value of two divalent ions using the pseudo first-order model is smaller than the R2 values in other models, refer to this model is inapplicable. It was likewise indicated in the existent work that qe values are lower than qe from pseudo-second order model. This indicates that pseudo-first order equation might not be adequate to consture the mechanism of cadmium and lead onto the two modified nanocomposites interactions.

The straight-line plots using the pseudo-second order model between t/qt versus time (t) for sorption of the two investigated divalent ions are clarified in Fig. 5. The intercept and slope were used to determine two parameters (qe and K2) values, respectively. The pseudo second-order model is considered and confirmed as the rate-limiting step for the forming of chemisorptive bond of divalent ions via exchange or sharing of electrons. The R2 values of the pseudo-second order kinetic model were obtained as 0.9879 and 0.9915 for lead and cadmium ions onto [NSi-CrossNPANI], respectively. A high correlation coefficients for lead and cadmium were identified as 0.9887 and 0.9827 using [NSi-NPANI], respectively. The calculated equilibrium adsorption capacity values, qe, were found to correspond to 303.03 and 125.00 mg g−1 for lead and cadmium on [NSi-NPANI], respectively. These results were superior than those related to the pseudo-first order model, indicating that the uptake operation of cadmium and lead followed pseudo-second order expression.

Fig. 5
figure 5

Pseudo-second order of lead and cadmium

The intraparticle diffusion constants for sorption of cadmium and lead onto [NSi-NPANI] and [NSi-CrossNPANI] are calculated and compiled in Table 5.The plots may represent multilinearity forms and this refers to two or extra steps may occur. The first is indicating that the sharper portion of the line and attributed to the diffusion of divalent ions from the solution to the external surface of nano-crosslinked or the boundary strata diffusion of solute molecules or ions. The second portion is used to describe the gradual adsorption stage, where intraparticle diffusion is acting as the rate limiting [42,43,44].

The sorption of cadmium onto [NSi-NPANI] and [NSi-CrossNPANI] via the Kid value was identified as 15.04 and 18.451 mg g−1 min−1/2 with R2 equal 0.9677 and 0.9386, respectively. The value of C (2.0086 and 14.619 mg g−1), gives an information about the thickness of the boundary layer. The greater the intercept, the larger is the boundary strata impact [42]. The aberration of the straight lines from the origin may be due to the diversity in the rate of mass transfer in the starting and eventual stages of adsorption. Further, such deviation of the straight lines from the origin refers to the pore dispersion is not alone rate controlling step [43]. Moreover, adsorption of two divalent ions onto two nanocomposites may proceed with two different steps. The first linear fraction was regarded to the surface adsorption or speedy external diffusion stage. The second linear portion is based on the piecemeal adsorption step controlled by intra-particle-diffusion [45]. The sorption of metal ion on [NSi-NPANI] and [NSi-CrossNPANI] did not obey the intraparticle diffusion equation due to small R2 values.

Table 5 showed that the Elvoich model constants obtained from plot (qt) versus (ln t) for sorption of the two investigated metal ions. According to the Elovich model, the chemical reaction of divalent ions with the adsorbent surface is known as the rate-controlling step (RCS) and the removal process takes place through a multilayer adsorption [46]. The Elovich parameters (α) for the adsorption initial rate of (cadmium and lead) onto [NSi-NPANI] and [NSi-CrossNPANI] were characterized in the range of 361.840 to 217.525 mg g−1 min−1. The value of β indicates that the number of sites available for adsorption was increasing from 3.39 × 10−2 to 0.1084 by disparate metal ions upon the two modified nanocomposites. A plot of qt versus ln t shows that the sorption of metal ion on [NSi-NPANI] and [NSi-CrossNPANI] did not obey the Elovich equation due to small R2 values.

The equilibrium adsorption and kinetic data assume that the surfaces of [NSi-NPANI] and [NSi-CrossNPANI] are homogeneous and therefore, the adsorption mechanism is chemisorption. The pseudo second-order equation is widely used to construe chemisorption of metal ion onto a homogeneous surface. In this work, different adsorption mechanisms of metal ions onto [NSi-NPANI] and [NSi-CrossNPANI] have been proposed. These involve surface adsorption, ion exchange, chemisorption and complexation. Ion exchange is the most prevalent mechanism by the reaction of metal ions with surface functional groups of silica-loaded nanoplyaniline such as the silanol groups. The chemisorptive reaction could be formed by participation a pair of electrons of nitrogen atoms with metal ions. Surface adsorption is another mechanism by which metal ions may be bound to [NSi-NPANI] or [NSi-CrossNPANI]. This mechanism is a surface reaction where a positively charged cadmium or lead ion was attracted to a negatively charged surface of nano-crosslinked without the exchange of ions or electrons. The possible mechanism of metal binding with [NSi-NPANI] is represented in Scheme 3.

Thermodynamic Studies

The impact of temperature on adsorption of metal ions (cadmium and lead) by [NSi-NPANI] and [NSi-CrossNPANI] was studied. (∆Go), (∆Ho) and (∆So) are generally calculated to discuss the adsorption operations and these are represented by the variation in standard enthalpy. These parameters are estimated from Eq. 3 as previously reported [47].

$$\ln (55.5{{\text{b}}_{\text{M}}})\,=\, - \frac{{\Delta G}}{{RT}}\,=\,\frac{{\Delta S}}{R} - \frac{{\Delta H}}{{RT}}$$
(3)

where bM is the Langmuir equilibrium (L mol−1), ∆Go is the standard free energy change of sorption (kJ mol−1), T is the temperature in (K), R is the real gas constant (8.314J mol−1K−1), ∆Ho is the standard enthalpy change (kJ mol−1) and ∆So is standard entropy change (kJ mol−1 K−1). In this work, the values of ln (55.5bM) were sketched against 1/T as shown in Fig. 6, from which the ∆Ho and ∆So values can be appraised from the slope and intercept. The calculated (∆Ho), (∆So), and (∆Go) are collected in Table S5 (Supplementary materials).

Fig. 6
figure 6

Plot of ln (55.5bM) versus 1/T for the adsorption of [NSi-NPANI] and [NSi-CrossNPANI]

The characterized sign of ∆Go values was negative at all temperatures revealing the spontaneous nature of these adsorptions. The ∆Go values were also found to decrease as T increases, indicating a less driving force for adsorption at higher T. Generally, the ∆Go results are near to each other indicating that such spontaneity is independent on T. Moreover, the adsorption operations are exothermic according to negative sign of ∆Ho. As previously reported, the magnitude of ∆Ho value in the range of 2.1–20.9 kJ/mol (physical adsorption) and 80–200 kJ/mol (chemical adsorption) reactions may be outlined [48]. In this work, the ∆Ho value is larger than 20.9 kJ/mol and this indicates the chemical adsorption of metal ions onto [NSi-NPANI] and [NSi-CrossNPANI]. Finally, the negative ∆So values correspond to the organization of the adsorbed species becomes less random and suggest the decrease in concentration of ions in solid-solution interface indicating thereby increase in divalent ions onto the nanocrosslinked solid phase. This is the normal effect of the chemical adsorption process, which takes place through chemisorptive interactions [48].

Desorption and Reusability Study

Regeneration of used nanocomposite is an important operation from the economical point of vision [49]. In this work, nanocomposites-bound-metal ions were subjected to regeneration by shaking with 0.1 mol L−1 of HCl for 2 min at room temperature. The recycled nanocomposites were filtered, repeatedly washed with distilled water till acid-free and finally dried at 60 °C. The regenerated nano-crosslinked nanocomposites were then used for removal of heavy metal ions from aqueous solution to identify the metal capacity values and percentage of stability in acid solution. The recycled nanocomposites were found to maintain 94.1–100.0% of their reactivity toward the removal of metal ions. Thus, the designed nanocomposites in this work were characterized by their high stability and therefore they can be used several times without decreasing the adsorption capacities significantly.

Adsorptive Removal of Metal Ions Using Multi-Stage Micro-Column Technique

The potential implementation of newly designed nanocomposites, [NSi-NPANI] and [NSi-CrossNPANI] for adsorptive removal of cadmium and lead from various water specimens (tap water, sea water and industrial wastewater) were explored using a multistage micro-column technique. The identified % recovery values are collected in Table 6. The percentage extraction values of lead using [NSi-NPANI] nanocomposite as the packing material were identified as 100.0% from tap water, 93.0% from industrial wastewater and 70.2% for sea water via the third extraction step. In addition, the extraction of lead from different water samples using [NSi-CrossNPANI] were identified as 98.5% (tap water) via second extraction step and 91.9% (industrial wastewater) via third extraction step and 65.7% (sea water) via third extraction step. The adsorptive removal of cadmium using [NSi-NPANI] was identified to produce 92.4% (tap water), 78.7% (industrial wastewater) and 33.8% (sea water) using third extraction step. The cadmium removal by [NSi-CrossNPANI] as the packing material was identified as 90.8% and 89.9% from tap water and industrial wastewater specimens, respectively.

Table 6 Adsorptive removal of different metal ions from water samples by [NSi-NPANI] and [NSi-CrossNPANI]

Conclusion

The current work provides a simple and green process for synthesis of two novel modified silica nanocomposites based on the functionalization of nanosilica (NSi) with NPANI and CrossNPANI. The optimum extraction conditions of metal ions were found in the range pH 6.0–7.0. It was concluded that both nonlinear and linear regression analyses exhibited better performance with respect to the Langmuir and sips models describing the best adsorption operation. In addition, the linear regression analysis by the three-parameter model was always found to provide a better match with the experimental data for cadmium than the two-parameter model. The nonlinear regression analysis of Langmuir isotherm was better fitted with the data of lead and cadmium onto the two nanocomposites. The adsorptive extraction of lead from tap water and wastewater was successively accomplished with 98.5–100.0 and 91.9–93.0%, respectively. Finally, the advantages of newly functionalized nanocomposites were compared with some previously reported adsorbents [45,46,47,48,49,50,51] as listed out in Table 7.

Table 7 Comparison of the proposed nano-sorbents with other published similar materials