Introduction

Arsenic (As) in the surface water and especially in groundwater systems is considered a threatening problem around the world. It usually occurs as arsenite (As(III)) and arsenate (As(V)) species in aqueous environments, and transformation of these two inorganic species largely depends on the aqueous pH and redox potential (Basu et al. 2014; Shakoor et al. 2017). Inorganic As forms are more toxic and mobile than those of organic As, and As(III) is considered ~ 60 times more toxic compared to As(V) (Shakoor et al. 2016; Taheri et al. 2017).

Groundwater contamination with As is a widespread problem around the world as people consume groundwater for their drinking, specifically in low-income countries of Southeast Asia like Pakistan and India (Raza et al. 2017; Shakoor et al. 2018a). Arsenic enrichment of groundwater resources could occur mainly through geogenic sources, for example mineral weathering processes and geothermal waters (Guo et al. 2017; Rasheed et al. 2016). Many anthropogenic/industrial sources could also discharge As into water bodies such as smelters, mining activities, wood treatment, paints, cosmetics, pesticides, coal combustion, and highly soluble As-rich trioxide stockpiles. It has been documented that the human health is greatly affected by As poisoning, and in recent past, three major types of As-induced toxicity have been reported such as cytotoxicity, epidemiological effects, and genotoxicity (Zhou and Xi 2018).

Considering the lethal toxicity of As, the International Agency for Research on Cancer (IARC) has enlisted As in the group 1 carcinogens and forced the World Health Organization (WHO) to set the maximum limit of As in drinking water at 10 μg L−1 (IARC 2004; WHO 2008). Hence, to decrease As concentration below the WHO limit, the researchers have developed efficient remediation methods for the As removal from contaminated water. Previous data have shown that various technologies have been adopted for the treatment of As-rich water (Shakoor et al. 2016, 2018b).

The most widely used methods for As removal from water are ion exchange resins, coagulation, electrodialysis, reverse osmosis, and sorption using various organic and inorganic materials such as activated bauxite, activated carbon, clay, and iron (Fe) minerals (Luqman et al. 2013; Mohan et al. 2014; Shakoor et al. 2016). The treatment technologies such as reverse osmosis and ion exchange resins are costly, which restricts their large-scale application (Atar and Olgun 2007; Çolak et al. 2009). Although chemical precipitation methods using ferric/lime salts are effective, they produce secondary contamination in the form of sludge and also require maintenance cost (Atar and Olgun 2009; Cheraghi et al. 2013; Jiménez-Cedilloa et al. 2013). Owing to its simplicity and reusable/regenerable nature, the sorption process has been widely applied as a preferable method to remove As from water (Olgun and Atar 2012).

In the recent 20 years, a lot of research has been done to develop and optimize inexpensive and more eco-friendly sorbents possessing similar features as activated carbons. Although As sorption has been done using agro-based sorbents, low efficiency, degradation, and coloration problems in water limited their large-scale applicability. The pretreatment/modification of sorbents may help to solve these issues and results in biopolymer ring opening, stability, high porosity, and As sorption capacity. Among the modified/pretreated sorbents, biochar has shown its suitability and applicability over the other materials (Zhou et al. 2017). Biochar is basically a solid, carbonaceous product generated by burning of organic materials in a little or no oxygen environment, and the process is called pyrolysis (Inyang et al. 2016; Khalil et al. 2018). Biochar is widely known as a multifunctional biomaterial and has largely been examined for increasing soil fertility and removal of contaminants from soil and water media (Chen et al. 2011). Recent literature has demonstrated that the use of biochar for pollutants such as heavy metal(loid) removal from aqueous solutions is highly advantageous owing to effective surface functional moieties and great sorption capacity (Jellali et al. 2016). For instance, Inyang et al. (2012) used biochar prepared from digested dairy waste for the removal of heavy metal(loid)s from aqueous environments. Biochar produced at 450 °C from wood/bark feedstock showed high removal potential of toxic heavy metal(loid)s such as cadmium (Cd), lead (Pb), and As from contaminated aqueous solutions (Mohan et al. 2007).

There are a variety of oxygen-rich surface functional groups on the surface of biochar, for example hydroxyl (–OH), carboxylate (–COOH), carbonyl (–COH), and amino (–NH2) groups which are used to remove heavy metalloids from the wastewater (Ding et al. 2018). A great variety of abundantly available organic materials from forestry, agriculture wastes, and animal husbandry are used for the generation of low-cost biochar, and peanut shell is one of them (Ali et al. 2017; Dieme et al. 2017; Rizwan et al. 2016; Wu et al. 2017). According to the United States Department of Agriculture (USDA) in 2017, the peanut and peanut oil production was 43.39 million metric tons and 6.08 million metric tons, respectively (USDA 2017).

Peanut shell (PS) is an inexpensive, abundant, and commonly available waste in China, Pakistan, and other countries worldwide which could be used as an excellent feedstock material for the production of biochar (Cheng et al. 2016). A few studies have highlighted the efficiency of biochar produced from peanut shell for removal of toxic elements such as Pb from water (Wang et al. 2015). However, little or no attention has been paid to find out the efficiency of peanut shell biochar (PSB) for As removal from water.

To employ biochar for successful removal of As from water, it is therefore critical to examine the oxidation states of As after sorption onto sorbents using advanced techniques such as X-ray photoelectron spectroscopy (XPS). However, to our knowledge, limited data are available on the analyses of As sorption behavior on solid sorbent interface using XPS.

Therefore, the current study aims to develop PSB to (1) assess its ability for As(III) and As(V) removal at varying environmental conditions (pH, initial metalloid concentration, sorbent dose, contact time), (2) compare the isotherms and kinetics of As species sorption by PS and PSB, and (3) investigate the sorption behavior using XPS and Fourier transform infrared (FTIR) spectroscopy.

Materials and methods

Experimental materials

Sodium arsenite (NaAsO2) and disodium hydrogen arsenate (Na2HAsO4·7H2O) were purchased from Sigma-Aldrich Chemical Co. (Germany) and used as a source of As(III) and As(V), respectively, in all the experiments. Standard stock solutions (1000 mg L−1) of both species of As were prepared by dissolving appropriate quantities of NaAsO2 and Na2HAsO4·7H2O salts. The experiments were conducted in triplicates.

Preparation of PS as sorbent

The PS was obtained from local market in Faisalabad. The material was air-dried, sun-dried, and kept in an oven at 70 °C for 24 h. The dried PS was then ground and sieved through a < 250-μm sieve to keep the size uniform.

Preparation and characterization of PSB

The PSB was prepared using PS as a feedstock according to the method described by Qayyum et al. (2015). In short, a manually fabricated stainless steel vertical silo-type furnace (10 kg capacity) having a gas burner was employed for the pyrolysis of PS. The flame ignited did not directly touch the PS, and the process was continued for 2 h at 450 °C followed by cooling of the material (referred to as biochar) in the furnace.

The PSB was characterized for different physicochemical attributes (Table A.1 in the Supplementary Material) such as pH and electrical conductivity (EC) of biochar (1:20, w/v, weight-to-deionized water (DW) ratio)) were measured using pH (HM-12P; TOA Electronics, South Korea) and EC (Jenway Limited model 4070, England) meters, respectively. The volatile content and total ash of biochar were determined by burning the PSB in a muffle furnace at 450 °C and 550 °C, respectively. Phosphorus (P) and other metal (Ni, Zn, Cd, Pb) contents were measured using a spectrophotometer and atomic absorption spectrophotometer (novAA 350; Analytik Jena, Germany), respectively, after digesting the PSB in di-acid (HNO3/HClO4) mixture. The PSB had EC, pH, ash, moisture, mobile, and resident matter values as 2.16 dS m−1, 8.01, 49.52%, 0.94%, 10.47%, and 50.47%, respectively (Table A.1 in the Supplementary Material). The values of P, Ni, Cd, Pb, and Zn were 0.15%, 18.96%, 3.13%, 5.21%, and 35.9%, respectively (Table A.1 in the Supplementary Material).

Molybdenum blue method for arsenic analysis

The concentrations of As(III) (after oxidation to As(V)) and As(V) were determined in water samples according to the molybdenum blue color method as reported by Lenoble et al. (2003), in which As concentration was analyzed by the development of an antimonyl-arsenomolybdate complex (see details in the Supplementary Material). In short, ascorbic acid solution (0.2 mL) and reagent A (0.4 mL) were added to a 10-mL test tube containing 8 mL water sample while the rest of the volume was filled using DW. A blank sample was also made according to the procedure stated above. The reaction mixture was left for 60 min at room temperature (20 °C ± 2 °C) to form complex and blue color development before analysis using a UV-visible double-beam spectrophotometer (Dynamica Halo DB-20, UK) set at 870 nm (Lenoble et al. 2003).

Sorption experiments

Effect of pH

Standard stock solution of 1000 mg L−1 was used to add required concentration (5 mg L−1) of As(III) and As(V) in the working solutions. The 0.1 M NaCl solution was used as a background electrolyte to retain a constant ionic strength during the experiments. About 0.015 g of PS and PSB was added to 25 mL of As(III) and As(V) working solutions having varying pH values to equalize a 0.6 g L−1 sorbent dose. The pH of the working solutions was adjusted to 3, 4, 5, 6, 7, 8, 9, and 10 by employing the HCl or NaOH (0.1 M each) solutions. The samples were shaken (at 20 °C) for 2 h on an orbital shaker set at 120 rpm, centrifuged, filtered (0.45-μm membrane), and stored to analyze As by using a spectrophotometer as described above.

The equilibrium As concentration (mg g−1) sorbed per unit weight of sorbents (PS and PSB) (qe) was assessed by Eq. (1) (Prasad et al. 2014)

$$ {q}_{\mathrm{e}}=\frac{\left({C}_{\mathrm{o}}-{C}_{\mathrm{e}}\right)\ V\ }{m\ } $$
(1)

where Co and Ce (mg L−1) refer to original and equilibrium concentrations, respectively, while m (g) and V (L) mean the sorbent mass (g).

The percent As removal from samples was obtained by Eq. (2) (Prasad et al. 2014)

$$ \%\mathrm{As}\ \mathrm{removal}=\frac{C_{\mathrm{o}}-{C}_{\mathrm{e}}\ }{C_{\mathrm{o}}}\times 100 $$
(2)

where Co and Ce (mg L−1) have been defined above.

Sorption kinetics

To determine the optimum time for maximum sorption of As, kinetic studies were carried out at around 20 °C temperature. Approximately 0.015 g (0.6 g L−1) of PS and PSB was added to 25 mL of working solutions containing an optimum concentration (5 mg L−1) of As(III) and As(V); the solution pH was set (based on pH study) at 7.2 and 5.4 for As(III) and As(V) sorption, respectively, by using HCl or NaOH (0.01 M each) solutions. The samples were then shaken at 120 rpm on an orbital shaker for different contact time periods which ranged from 0.016 to 24 h. Filtered samples were used to determine As by using a spectrophotometer as described above. Kinetic data were subjected to non-linear kinetic models such as pseudo-first-order and pseudo-second-order models to explore the rate of both As species on PS and PSB. The governing equations used for kinetic modeling are described below (Ghorbani-Khosrowshahi and Behnajady 2016):

$$ \mathrm{Pseudo}-\mathrm{first}\ \mathrm{order}:\kern0.5em {q}_t={q}_{\mathrm{e}}\left(1-{e}^{-{k}_1t}\right) $$
(3)
$$ \mathrm{Pseudo}-\mathrm{second}\ \mathrm{order}:\kern0.5em {q}_t=\frac{q_{\mathrm{e}}^2{k}_2t}{1+{q}_{\mathrm{e}}{k}_2t} $$
(4)

where qe and qt (mg g−1) mean As sorbed at equilibrium time and any time t, respectively, and k1 (min−1) and k2 (g mg−1 min−1) are the rate constants for pseudo-first-order and pseudo-second-order models.

Sorption isotherms

The effect of initial concentration of both As species was assessed by using varying concentrations of As(III) and As(V). The sorbent dose of 0.015 g (0.6 g L−1) of PS and PSB was added to 25 mL of working solutions containing different concentrations of both As species (0.01–7 mg L−1). The pH of As(III) working solutions was set at 7.2 while 5.4 for As(V) using HCl or NaOH (0.1 M each) solutions, and samples were shaken for 2 h at 120 rpm on an orbital shaker. Arsenic in the filtered samples was measured by using a spectrophotometer as described above. The mechanism of As sorption onto PS and PSB was determined by fitting the isotherm, equilibrium data to four different non-linear isotherm models, and the detail of the modeling is described in the Supplementary Material.

Effect of sorbent dose

The optimum sorbent dose was determined, and experiments were conducted at 5 mg L−1 initial sorbate concentration, 2 h contact time, and 7.2 (As(III)) and 5.4 (As(III)) pH levels. Various sorbent doses, i.e., 0.1 g L−1, 0.3 g L−1, 0.6 g L−1, 0.9 g L−1, 1 g L−1, and 1.3 g L−1, were applied, and As concentration in filtrate solution was analyzed using a spectrophotometer as described above.

Quality assurance and quality control

The chemicals and solutions used for all the experiments were analytical grade. All the glassware/plasticware used in the current study was thoroughly washed with 2% HNO3 solution followed by rinsing (twice) with DW. To check the precision and accuracy during the analyses of As in stored samples, the samples of known As values such as 10 μg L−1, 30 μg L−1, and 40 μg L−1 were also analyzed after each ten As samples.

Surface characterization

The surface characterization (survey scans and chemical states) of PS and PSB before and after As loading was done by PHI 5000 Versa Probe II XPS under ultra-high vacuum (~ 10−7 mbar). The survey spectrum of PS and PSB was obtained from 0 to 1100 eV, and XPS data was interpreted using Multipack software (Ver. 9; ULVAC-PHI, Inc., Japan). The specific surface functional groups of PS and PSB were analyzed using FTIR spectroscopy, and the infrared spectra of PS and PSB were acquired in the wavenumber range of 400–4000 cm−1.

Results and discussion

Influence of pH

Figure 1a, b shows that As(III) removal was dependent upon the solution pH, because, initially, an increasing trend was observed for As(III) sorption reaching to a maximum sorption at 7.1 and 7.2 near neutral pH for PS (4.27 mg g−1 and 85%) and PSB (4.75 mg g−1, 95%), respectively. A further increase in pH significantly reduced the sorption of both PS and PSB. In the case of As(V), sorption increased gradually until the equilibrium was achieved at pH 6.2—both for PS (4.04 mg g−1 and 81%) and PSB (5.01 mg g−1 and 99%), respectively, after which reduction in sorption was obvious as shown in Fig. 1c, d. The PSB displayed more As sorption compared to PS for both species of As (10% As(III) and 18% As(V), respectively), and notably more As(V) (4%) was removed by PSB compared to As(III) while PS showed higher As(III) (4%) removal than As(V).

Fig. 1
figure 1

ad Effect of different solution pH levels on As sorption by peanut shell and peanut shell biochar. Experimental conditions: temperature of 20 °C, initial As concentration of 5 mg L−1, contact time of 2 h, and sorbent dose of 0.6 g L−1

Arsenic(III) species mainly occurs as a neutral (H3AsO3) species in the pH range of 2 to 9 (Samsuri et al. 2013), whereas above pH 9, it predominates as an anionic H2AsO3− species (Niazi et al. 2018a, 2018b). The sorption behavior of As(III) onto PS and PSB in this experiment was nearly the same as reported on Japanese oak wood and perilla leaf biochars, where authors found the highest As(III) sorption (3.2 mg g−1 and 1.81 mg g−1) at pH around 7–8 (Niazi et al. 2018a, 2018b). In this sorption experiment, maximum As(III) removal around a neutral pH (7.1) value might be associated with the less or no competition between negatively charged surface functional groups (–OH, –COOH) and neutral species of As (H3AsO3) which could otherwise happen under acidic pH (6) or alkaline pH (7.5) in water (Abid et al. 2016; Zhang et al. 2018).

The As(V) species such as H2AsO4 and HAsO42− dominate in the solution under the pH range (3–10) (pK1 = 2.2, pK2 = 6.98) tested here (Boddu et al. 2008; Wu et al. 2017). Low pH is more suitable for successful protonation of sorbent surface, leading to the development of positively charged sorption sites, and facilitates the electrostatic interactions between anionic species of As and biosorbent surface, thereby yielding maximum As removal (Zhou et al. 2017). Relatively higher As(V) removal from water at acidic pH for PSB could be due to reduced aromaticity and increased surface polarity after pyrolysis, thus producing more acidic functional groups on PSB compared to PS, thereby favoring As(V) binding with positively charged surface of PSB via electrostatic attraction (Niazi et al. 2018a, 2018b).

At the high pH range, negatively charged sorption sites increase and repulsive forces exist between sorbent surface and As anions; consequently, As(V) sorption declines progressively (García-Rosales et al. 2018). The declining sorption with rising pH values (> 7.2) could also be linked with the competition between negatively charged functional groups (–OH, –COOH) with As(V) anions (Zhang et al. 2018). Moreover, PSB possessed additional functional groups on the surface which enhanced its porosity, thus removing more As species compared to PS.

Sorption kinetics

The contact time used for the experiments ranged from 0.016 to 24 h to obtain the equilibrium. The sorption rate of As species was fast initially, with As(III) removal of 70% and 90% by PS and PSB, respectively, while 81% and 97% of As(V) removal was achieved by PS and PSB, respectively, at 2 h contact time (Fig. 2). A further increase in sorption time had a minimum effect on sorption of As species by PS and PSB.

Fig. 2
figure 2

Removal of As from aqueous solutions using peanut shell and peanut shell biochar as a function of contact time (0.016–24 h). Experimental conditions: temperature of 20 °C, initial As concentration of 5 mg L−1, and sorbent dose of 0.6 g L−1

Both PS and PSB removed up to 9% more As(V) compared to As(III) and PSB proved more efficient in removing As(V) than PS with 16% more As(V) removal capacity. The sorption occurred swiftly until 2 h, achieving equilibrium and slowed down thereafter. In the past, such kinetic behavior has been ascribed to the rapid development of outer-sphere complexes initially and, after which, inner-sphere complexes are formed gradually (Ding et al. 2018). High loading of As species decreased the uptake capacity of both PS and PSB, and this loading effect might also be explained partially by dilution, as As is adsorbed onto sorbents, its concentration in solution reduces, hence less As sorption with increasing contact time (Shakoor et al. 2018b; Yoon et al. 2017).

The sorption kinetic data were fitted to nonlinear pseudo-first-order and pseudo-second-order models to delineate mononuclear and binuclear sorption (Figure A.1 in the Supplementary Material). Table 1 shows kinetic models’ parameter values for As sorption data. The comparison of models based on R2 values elucidated that the kinetic data of both As species were best fitted with pseudo-second-order (R2 = up to 0.98) for PS and PSB (Table 1). However, a slightly higher R2 value was obtained from the pseudo-second-order model applied to kinetic data of PSB (0.98) compared to PS (0.97) in the case of As(III).

Table 1 Non-linear kinetic modeling parameters of As sorption onto peanut shell and peanut shell biochar for As removal from aqueous solutions

The results explain that the amount of surface sorption sites on PS and PSB could partially influence the rate of sorption, and the rate-determining step could probably be owing to chemisorption which involved the chemical interactions (e.g., surface complexation) between As oxyanions and surface functional groups (Mohan et al. 2011).

Sorption isotherm

The sorption isotherm studies were conducted to examine the sorption potential of both As species by PS and PSB at the initial metalloid concentration of 0.01–7 mg L−1 (Figure A.2 in the Supplementary Material). The maximum sorption of As(III) and As(V) at the current experimental setup was observed as 3.10 mg g−1 and 2.74 mg g−1 by PS, respectively, while PSB sorbed more As than PS which was 3.92 mg g−1 (As(III)) and 3.15 mg g−1 (As(V)) with a 4–5 mg L−1 initial metalloid concentration (Figure A.2 in the Supplementary Material). A further increase in the concentration of As (up to 7 mg L−1) caused minimum/negligible improvement in the sorption of both As species on PS and PSB. In this study, the highest As sorption was obtained at relatively lower initial metalloid concentrations (4–5 mg L−1) which could be inferred to enlarge surface area and availability of more accessible binding sites for As (Tajernia et al. 2014).

The experimental data were computed with nonlinear isotherm models of Langmuir, Freundlich, Temkin, and Dubinin–Radushkevich (Figure A.3a–d in the Supplementary Material) as described in the Supplementary Material. The model values for all four models are shown in Table 2. First, in the Freundlich isotherm model, the parameter n for both As species was < 1, As(III) (0.27 and 0.32) and As(V) (0.32), which assumes that the sorption process is favorable on PS and PSB (Table 2). The correlation coefficients (R2) of Langmuir isotherm (As(III) [0.97, 0.98] and As(V) [0.98, 0.99]) are comparatively higher than those obtained from the Freundlich model (As(III) [0.94, 0.96] and As(V) [0.90, 0.96]) (Fig. 3a–d). These results suggest that monolayer sorption governed by surface complexation and electrostatic interactions between As(III)/As(V) and surface functional groups dominated the process in both experiments conducted using PS and PSB, but slightly higher R2 values were obtained from isotherm data of PSB than PS.

Table 2 Non-linear isotherm modeling parameters of As sorption onto peanut shell and peanut shell biochar for As removal from aqueous solutions
Fig. 3
figure 3

The FTIR spectra of peanut shell and peanut shell biochar before (a, d) and after (b, e) As(III) and c, f As(V) sorption

The Langmuir separation factors (RL) were extracted to test the favorability of sorption (Figure A.4a, b in the Supplementary Material). The results showed that RL values were < 1, indicating favorable sorption of both As species onto PS and PSB.

The Temkin isotherm model described higher R2 values for As(V) removal than As(III) by both the sorbents (Figure A.3a–d in the Supplementary Material). The heat of sorption (b) values were 0.37 and 0.95 for As(III) sorption on PS and PSB, respectively, while for As(V), the values were reported as 0.38 and 0.48 for PS and PSB, respectively (Table 2). This indicated that a linear reduction in b values caused the maximum coverage of both species of As on PS and PSB (Foo and Hameed 2010).

In the case of the Dubinin–Radushkevich model, again higher R2 values for As(V) removal were extracted than for As(III) by both the sorbents (Figure A.3a–d in the Supplementary Material).

Among all the models, the Langmuir model provided the best fit (confirmed by the highest R2 values up to 0.99) to isotherm data of both species of As, suggesting that the monolayer process was involved in As sorption onto PS and PSB.

Influence of sorbent dose

The effect of sorbent dose was determined to optimize the quantity of sorbent needed for the maximum removal of As (Figure A.5a, b in the Supplementary Material). The results showed that there was a substantial increase in As(III)/As(V) removal with the increasing dose of sorbents. The maximum sorption was obtained at 0.6 g L−1 for both species of As by PS and PSB, but notably PS and PSB (82% and 93%, respectively) removed more As(V) compared to As(III) (68% and 88%, respectively) from aqueous solutions after which a declining trend was observed. The low As removal at a high dose of sorbents could be due to the presence of unsaturated binding cavities which indicates that the number of sorption sites increases with the addition of high dosage but fixed initial metalloid concentration causes reduction in the sorption (Kumar et al. 2011; Lalhmunsiama and Lee 2012).

Surface characterization

FTIR analysis

The FTIR spectra of PS and PSB before and after As(III)/As(V) sorption are shown in Fig. 3a–f, which identified the functional groups present on the surface of sorbents and their interaction with As species, i.e., As(III)/As(V).

FTIR spectra of PS

In the case of PS, the broad and strong band before As sorption at 3225 cm−1 was attributed to the typical presence of hydroxyl (–OH), and the band observed at 2852 cm−1 can be nominated to –CH2 stretching on sorbent (Fig. 3a) (Liu et al. 2017). The peak at 1636 cm−1 was assigned to the stretching vibration of the asymmetrical carboxyl group (–COOH). The small peak observed at 1522 cm−1 was described to the ether group (Fig. 3a).

After As(III) and As(V) sorption, there were shifts to a lower and higher side as a result of the As(III) or As(V) sorption in –OH, –CH2, and –COOH at about 3275 cm−1, 2860 cm−1, and 1624 cm−1 for As(III), while at 3280 cm−1, 2867 cm−1, and 1624 cm−1 in the case of As(V) (Fig. 3b, c). We conclude that specific functional groups (–OH, –CH2, and –COOH) contributed to sorption of both As species; however, –OH showed considerable shifts in the peaks compared to other functional groups and thus strongly adsorbed As(III) or As(V) through an ion exchange mechanism (Ahmad et al. 2013; Shakoor et al. 2018b).

FTIR spectra of PSB

Figure 3e, f represents the FTIR spectra of PSB and As(III) and As(V) loaded PSB. For PSB, the spectral band at 3618 cm−1 was characteristics of the –OH group present in phenols or alcohol (R-k et al. 2011). The spectral peak, although small, at 1698 cm−1 could be due to the stretching vibration of C=O bonds of the nonionic carboxyl groups (–COOH, –COOCH3) and may be linked to carboxylic acids and/or their ester groups (Abid et al. 2016; Mohan et al. 2014). Under an oxygen-deficient environment and at high temperature (450 °C), thermal cracking occurs in pyrolysis of biomass, which produces both the volatile matters and improves the quantity of aromatic surface functional groups (Fang et al. 2013) through dehydrogenation of carbohydrates followed by condensation process (Cope et al. 2014; Niazi et al. 2018a). Two peaks at 1541 cm−1 and 1395 cm−1 were nominated to aromatic C=C and/or C=C–C vibrations while, at 700 cm−1, described to aromatic –C–H out-of-plane stretching (El-Banna et al. 2018; Keiluweit et al. 2010). On the whole, our results demonstrated that unlike PS, the surface of As-unloaded PSB was mainly occupied by aromatic surface functional groups (Fig. 3) (Dong et al. 2011).

After As or As(III) and As(V) loading, some substantial changes in FTIR spectral bands of PSB were prominent (Fig. 3e, f). The –OH, C=O, C=C–C, and –C–H stretching bands at 3618 cm−1, 1698 cm−1, 1395 cm−1, and 700 cm−1, respectively, were shifted to 3629 cm−1, 1715 cm−1, 1339 cm−1, and 875 cm−1 for As(III) and to 3649 cm−1, 1722 cm−1, 1381 cm−1, and 841 cm−1 after As(V) sorption, suggesting the chemical interactions such as surface complexation/precipitation and electrostatic interactions had occurred between the As(III) or As(V) and surface functional groups (Prakash et al. 2013).

The findings of this study highlight that As(III) and As(V) probably occupied the sorption cavities in the FTIR spectral region in which –OH groups largely dominated for both PS and PSB and thus adsorb As on their surface complexation and electrostatic interactions (Niazi et al. 2018b; Vithanage et al. 2017). In addition, for PSB aromatic C=O, C=C–C and –C–H surface functional groups also played a significant role in As uptake from contaminated water (Mohan et al. 2014; Niazi et al. 2018a). However, future research work should be focused to analyze the distinct linkage between As(III)/As(V) with biochar which caused shifts in the spectral bands after As loading reported in the current study.

XPS spectra

The XPS survey scans of PS and PSB before and after As(III) or As(V) sorption are shown in Figs. 4 and 5 as well as in the Supplementary Material (Figures A.6 and A.7). The results showed that carbon (C) (75.4%, 20.2%) and oxygen (O) (82.2%, 16.4%) were dominant elements in the surface composition of PS and PSB, respectively (Figures A.7 and A.8 in the Supplementary Material). After As(III) sorption, the percentage of sorbed As(III) was observed as < 0.1% and 0.5% on PS and PSB, respectively, while As(V)-loaded PS and PSB showed 0.5% and 0.6% of As(V), respectively (Figures A.6 and A.7 in the Supplementary Material). The percentage of As(V) sorbed was slightly higher on PS and PSB compared to As(III), showing greater potential of removing As(V) than As(III) by both sorbents.

Fig. 4
figure 4

The O1s XPS spectra of peanut shell and peanut shell biochar before (a, d) and after (b, e) As(III) and c, f As(V) sorption

Fig. 5
figure 5

The As3d XPS spectra of peanut shell and peanut shell biochar after (a, b) As(III) and (c, d) As(V) sorption

The XPS spectra of O1s for PS and PSB indicated that the surface of the sorbents was enriched with O-containing surface functional groups (Fig. 4a–f). There are two energy peaks at 531.71 eV and 530.46 eV for PS and at 531.15 eV and 529.83 eV for PSB which were assigned to O=C–O and carbonyl (O=C) groups, respectively (Fig. 4a–f) (López et al. 1991). After As(III) sorption, the change in binding energy was prominent at 531.16 eV (PS) and 532.12 eV (PSB) in the case of O=C–O while at 529.85 eV (PS) and 531.07 eV (PSB) which represented the carbonyl group (Fig. 4b–e).

Similarly, As(V)-loaded PS and PSB showed an increase/decrease in binding energy at 530.95 eV (PS) and 531.16 eV (PSB), indicating O=C–O, and at 529.76 eV (PS) and 529.85 eV (PSB) for the carbonyl group (Fig. 4c–f). It is obvious from the results that O-rich –O=C–O and O=C surface functional groups had big devotion to As and sorbed both As species through electrostatic interactions (Zhou et al. 2017).

High-resolution XPS spectra of As-loaded PS and PSB in the As3d region are shown in Fig. 5a–d. It is reported that 3d binding energy was about 45.5 eV for As(V) in Na2HAsO4, 44.2 eV for As(III) in NaAsO2, and 41.5 eV for As(0), respectively (Hu et al. 2015). Therefore, 44.40 eV and 44.66 eV of As3d binding energy showed the presence of As(III) while 46.64 eV and 46.11 eV confirmed As(V) sorption on the surface of PS and PSB, respectively.

Table A.2 in the Supplementary Material compares the sorption potential of sorbents examined in the current study with previous studies. In this study, PSB showed higher sorption capacity for both As species, i.e., 4.75 mg g−1 (As(III)) and 5.01 mg g−1 (As(V)), compared to the various sorbents evaluated previously (Table A.2). It is suggested that PSB has great potential to be used as an efficient sorbent to remove both As species from aqueous streams.

Conclusions

The conversion of PS into PSB significantly enhanced the physiochemical characteristics and successfully removed the higher As(V) (5.01 mg g−1, 99%) concentration at pH 6.2 than As(III) (4.75 mg g−1, 95%) at pH 7.2 from contaminated water. The XPS and FTIR analysis revealed that PSB possessed some additional surface functional groups such as C=O, C=C–C, and –C–H which increased the As(III) and As(V) removal potential of PSB than PS. The kinetic study revealed that As(III)/As(V) removal by PS and PSB followed the pseudo-second-order model which was controlled by the chemisorption process. The Langmuir model provided the best fit to isotherm data and showed highly favorable monolayer As(III)/As(V) sorption onto PS and PSB. Moreover, both surface complexation and electrostatic interactions between As and PSB contributed to the sorption of As(III)/As(V), according to the results of adsorption envelop (pH study), modeling, and FTIR and XPS analysis. In brief, the results of this study showed that the novel PSB as a biosorbent provided a new environmentally friendly and cost-effective opportunity for As removal (specially As(V)) from contaminated water streams.