Introduction

Opuntia Ficus-Indica, commonly referred to as nopal, is a type of cactus classified in the Opuntioideae genus in the Cactaceae family (Stevens 2017). A recent review (Nharingo and Moyo 2016), highlighted the numerous uses of this species, from pharmaceutical applications to water treatment. In the context of water treatment, biosorbents derived from nopal generally exhibit good adsorption capacities. This has been partially attributed to their multi-functional surface characteristics which incorporate phosphate, phenolic, hydroxyl, carboxylic, carbonyl, amide, amine and alkyl groups. Most studies describe the metal sorption mechanism as an ion exchange process whereby protons and alkali earth metal ions play a key role (Kotrba et al. 2011; Wahab et al. 2012; Escudero et al. 2017), and surface groups such as C–O bonding sites are responsible for metal uptakes through ion-exchange (Bilal et al. 2013).

In general, the uptake of heavy metals by biosorbents has been associated to different phenomena including ion exchange, microprecipitation, chemisorption and physisorption (Robalds et al. 2016). Elucidating the metal sorption mechanism is a difficult task due to the complex nature of the biosorbent and the multiple roles that one single surface group can exhibit (Kotrba et al. 2011). For instance, carboxylic groups are observed to engage in both electrostatic attraction and complexation mechanisms. If an ion exchange process were responsible for the metal binding mechanism, the metal cations from the solution would generally be replaced with protons or other cations such as calcium or magnesium (the ones typically reported) in equivalent amounts, indicating that the charge released from and taken by the surface is balanced (Schneider et al. 2001; Kotrba et al. 2011). This is reflected in the following reaction: \( SH + M^{ + } \rightleftharpoons SM + H^{ + } \), in which S in the surface group holding the protons H and M denotes the metal cation. These alkaline metal cations are micronutrients associated with functional groups such as carboxylic groups of the biopolymer, located in the polysaccharides of hemicellulose and soluble compounds of the biosorbent (Velazquez Jimenez and Rangel Mendez 2014; Escudero et al. 2017). In the case of microprecipitation (also known as surface precipitation), the process involves the deposition of electrically neutral particles due to the limited solubility of the metal on the surface of the biosorbent (Kotrba et al. 2011). This could be produced by specific triggers in the vicinity of the biosorbent such as binding sites or physico-chemical conditions, different to those in the bulk solution.

Although there are several reviews (Schneider et al. 2001; Robalds et al. 2016) and studies (Goldberg 1993; Kotrba et al. 2011) devoted to metal sorption mechanism via microprecipitation, they are still rather limited in the context of the ion exchange phenomena in biosorption research and this warrants further research. This forms an underlying motivation and basis to the research theme presented in the current study whereby alkali-treated nopal fibres are used as heavy metal biosorbent. It attempts to describe the relationship between colour changes observed in the biosorbent as complemented by spectroscopic analysis with equilibrium sorption data.

Methodology

Biosorbent preparation

Nopal biomass was obtained from the farm “Los Jacales” in Apodaca, Nuevo Leon, Mexico. Nopal cladodes aged (8–10 years old) were collected, the thorns removed with a knife, washed with distilled water and finally cut into small squares. Sodium hydroxide flakes (NaOH, ACS grade) were purchased from Fermont. Raw nopal fibres (FNV) were treated in a solution of 5% NaOH on a heating plate at 70 °C for 4 h. The final FNV were filtered, washed with deionized water until neutral pH and dried in a vacuum oven. Alkaline treatment with NaOH is a process commonly referred as pulping as applied to wood and plant fibres with the aim of removing hemicellulosic material, mucilageneous polysaccharides, proteins, inorganic material and lignin. This basic hydrolysis process breaks down the linkages between the carbohydrates and lignin, and enhances the surface area of cellulosic fibres (Moon et al. 2011; Brinchi et al. 2013; Abdul Khalil et al. 2014).

Adsorption

In a typical adsorption experiment, the biosorbent (5 g/L) was added into a copper nitrate solution (25 ml) with initial Cu2+ concentration ranging from nil to 1,750 mg/L. A Cu (II) stock solution (2,000 mg/L) was used for solution preparation. The solution was stirred at 80 rpm and room temperature (21 ± 1 °C) for 24 h. Initial solution pH prior to the adsorption process was 4.4 ± 0.2. At the end of the contact period, the samples were centrifuged at 5,000 rpm for 10 min. The supernatant was removed and recovered solid was oven-dried at 50 °C overnight and stored for further analysis in a micro-spectrophotometer. The supernatant was diluted in nitric acid (0.2 M) and refrigerated. The concentration of Cu2+ was determined by atomic absorption spectroscopy (AAS). The equilibrium adsorption capacity was determined using the following equation:

$$ Q_{e} = \frac{{\left( {C_{0} - C_{e} } \right) \cdot V}}{W} $$
(1)

where Qe is the adsorption capacity at equilibrium (mg/g), W is the amount of biosorbent (g), C0 and Ce are the initial and final Cu2+ concentrations, respectively (mg/L) and V is the volume (L).

The equilibrium data were fitted to the Langmuir, Freundlich, Dubinin-Radushkevich and BET isotherm models. The Langmuir isotherm model (Langmuir 1916) is based on monolayer adsorption on active sites of the adsorbent and presented by the following equation:

$$ Q_{e} = \frac{{Q_{m} bC_{e} }}{{1 + bC_{e} }} $$
(2)

where Qm (mg/g) and b (L/mg) represent the monolayer adsorption capacity and Langmuir constant, respectively. The Freundlich equation (Freundlich 1906) is expressed as

$$ Q_{e} = K_{F} C_{e}^{{{\raise0.7ex\hbox{$1$} \!\mathord{\left/ {\vphantom {1 n}}\right.\kern-0pt} \!\lower0.7ex\hbox{$n$}}}} $$
(3)

where KF and n are constants. A linear plot of log Qe against log Ce was employed to provide values of KF and n from the intercept and slope of the plot, respectively. The linearized form of the Dubinin–Radushkevich (D–R) model (Dubinin and Radushkevich 1947) can be expressed as follows:

$$ { \ln }Q_{\text{e}} = { \ln }Q_{\text{m}} - \beta \varepsilon^{ 2} $$
(4)

where Qm is the monolayer adsorption capacity (mg/g), β is the constant linked to sorption energy (mol2/kJ2) and ε is the Polanyi potential which is expressed as RT ln(1 + 1/Ce), where R and T are the gas constant (kJ/mol.K) and temperature (K), respectively. The plot of ln Qe versus ε2 results in a straight curve. The slope of the D–R plot gives the β constant value while Qe is determined from the intercept of the plot. The mean free energy of biosorption, E can be determined by using the obtained β value from D–R isotherm via the following equation (Hobson 1969):

$$ E = { 1}/\left( { 2\beta } \right)^{0. 5} $$
(5)

E can be further described as the energy needed to transfer one mole of sorbate to the surface from infinity (i.e. bulk fluidic environment). E is used to establish the governing adsorption mechanism in which an E value lesser than 8 kJ/mol shows the predominance of physisorption mechanism while an E value higher than 8 kJ/mol shows that chemisorption is the main governing mechanism (Helfferich and Dranoff 1963).

Brunauer–Emmett–Teller (BET) isotherm describing multilayer adsorption for liquid phase on energetically homogenous solids can be expressed as (Ebadi et al. 2009):

$$ Q_{e} = \frac{{Q_{m} K_{s} C_{e} \left[ {1 - \left( {m + 1} \right)\left( {K_{L} C_{e} } \right)^{m} + m\left( {K_{L} C_{e} } \right)^{m + 1} } \right]}}{{\left( {1 - K_{L} C_{e} } \right)\left[ {1 + \left( {{\raise0.7ex\hbox{${K_{s} }$} \!\mathord{\left/ {\vphantom {{K_{s} } {K_{L} }}}\right.\kern-0pt} \!\lower0.7ex\hbox{${K_{L} }$}} - 1} \right)K_{L} C_{e} - \left( {{\raise0.7ex\hbox{${K_{s} }$} \!\mathord{\left/ {\vphantom {{K_{s} } {K_{L} }}}\right.\kern-0pt} \!\lower0.7ex\hbox{${K_{L} }$}}} \right)\left( {K_{L} C_{e} } \right)^{m + 1} } \right]}} $$
(6)

where Ks (L/mg) is the equilibrium constant of adsorption for the first layer—it is a constant relating to the energy of interaction with the surface; KL (L/mg) is the equilibrium constant for upper layers; Qm (mg/g) is the monolayer saturation capacity and m is the number of layers (when m = 1 the BET isotherm reduces to Langmuir isotherm).

Characterization

Solution pH was measured before and after the adsorption experiments by using a Hanna Checker HI-98103 pH meter. The concentration of Cu2+ was determined via a Thermo Scientific™ iCE™ 3000 Series AA spectrometer. A single element hollow cathode Cu lamp was used and the nebulizer flow rate was 3.5 mL min−1. The concentrations of Ca2+ and Mg2+ released into the solution after equilibrium study, as well as in the control experiments, were measured by inductively coupled plasma mass spectrometry (ICP-MS) (Agilent 7500ce). X-ray diffractometry (XRD) analysis was conducted via an Eagle III X-ray diffractometer using CuKα radiation, λ = 1.5406 Å, with voltage of 40 kV and current of 20 mA. Data was collected with a scan angle from 5 to 65° and a scan speed of 0.02 (1°/min). X-ray diffraction patterns of cellulose derivatives were recorded by XRD, EMPYREAN Panalytical onto a mono-oriented silicon sample holder in reflection mode using a Bragg–Brentano geometry, 5° ≤ 2 ≤ 70°. Surface morphology of the biosorbent was analysed with a Hitachi S-3400 N SEM scanning electron microscope coupled with a EDX energy dispersive x-ray spectroscopy detector operating at 1027 cps with a voltage of 30 kV and a current of 140 mA.

Colour analysis

In order to correlate the colour displayed by the biosorbent during adsorption experiments with chemical characteristics such as pH changes, binding copper concentrations and dissolved earth metal cations, the following procedure was established (Fig. 1). Colour analysis of the biosorbent was performed using a micro-spectrophotometer (video spectro comparator VSC5000). Each spectrum was recorded in reflectance mode (Lights = Flood 100%; longpass = Vis; bandpass = Off; Magnification = 11.83) for wavelength range from 400 to 1000 nm. Statistical analysis was conducted using Microsoft Excel 2013, Minitab 17.1.0 and Tanagra 1.4.50 software. Prior to the statistical analysis, the overall data (physico-chemical variables generated using the pH meter, AAS and ICP-MS) were standardized using the following mathematical expression:

$$ z = \frac{x - \mu }{\sigma } $$
(7)

where z is the column-scaled data, μ is the overall mean and \( \sigma \) is the standard deviation of the entire dataset. The autoscaled data possesses a zero mean and a standard deviation of one. In the case of data generated by micro spectrophotometry, every spectrum was centred and scaled (Standard Normal Variate, SNV) and then a second order polynomial first derivative with 15 window width was computed. SNV was conducted as a normalization algorithm on individual sample spectrum, similar to Eq. (7), to correct for multiplicative variations between spectra. In the filtering method, the first derivative was applied to eliminate baseline offset variations between samples and improve resolution.

Fig. 1
figure 1

Methodology of colour analysis

After preprocessing, an optimization procedure was implemented to determine the right number of variables. This step reduced the dimensionality of the dataset and used exclusively the training set to ensure that the selection is unbiased. It applied a stepwise discriminant analysis method (STEPDISC, forward approach, F to enter = 3.84). Subsequently, the predictors selected by the feature selection method were used as input variables with the same training set to build a classification model using a supervised learning algorithm (Linear Discriminant Analysis, LDA). Subsequently, the quality of the model was determined by using the test set. Validation included split train/test set using a random set of samples (iteratively) 100 times (train proportion was 0.7), cross-validation tenfold repeated 10 times and leave-one-out and bootstrap (100 replications repeated 10 times). Finally, an exploratory data analysis was conducted using Principal Component Analysis (PCA) to identify the patterns in the data. The numbers of samples (n) and predictors (p) involved in each step were as follows: feature selection (n = 6, p = 186), LDA (n = 6, p = 1), validation (n = 9, p = 1) and PCA (n = 11, p = 6).

Results and discussion

Surface morphology and crystalinity

The main elements found in the biosorbent based on the EDX results are oxygen, carbon, calcium and magnesium. In the XRD analysis, the peak at around \( 2\theta = 22^\circ \) would have been used to determine the degree of crystallinity of the cellulose fibres from Opuntia cactus skin (Ramezani Kakroodi et al. 2015). The absence of this peak in the XRD pattern (Fig. 2) would indicate the presence of amorphous components such as lignin and/or pectin and, hence, low crystallinity of the cellulose fibres present in the biosorbent. The following Ca/Mg crystalline compounds were identified on Opuntia ficus-indica (Contreras-Padilla et al. 2015, 2016), Opuntia ellisiana (Monje and Baran 2005) and Opuntia basilaris (Ramezani Kakroodi et al. 2015) species using XRD and SEM analyses: calcium carbonate [CaCO3], calcium-magnesium bicarbonate [CaMg(CO3)2], magnesium oxide [MgO], monohydrated calcium oxalate [Ca(C2O4)ˑ(H2O)] and dihydrated magnesium oxalate [Mg(C2O4)ˑ2(H2O)]. According to Contreras-Padilla et al. (2015), the flower-like structures shown in Fig. 3a would correspond to calcium carbonate crystals. The presence of magnesium is also detected (Fig. 3b) which is possibly attributed to the presence of some Mg-containing crystals.

Fig. 2
figure 2

XRD pattern of pristine FNV-S

Fig. 3
figure 3

Scanning electron micrographs of FNV-S biosorbent before adsorption experiment

The narrow and sharp peaks around \( 2\theta = 15.0^\circ , 24.5^\circ , 30.2^\circ , 36.1^\circ {\text{and}} 38.2^\circ \) are attributed to calcium oxalate crystals in nopal (Ramezani Kakroodi et al. 2015). The similarities between the present XRD and SEM–EDX results and those by Contreras-Padilla and co-researchers present a strong argument for the existence of different crystalline structures with several morphologies on the FNV-S surface. Despite the differences in the pre-treatment processes applied to the nopal samples, Fig. 2 shows remarkable resemblance to the diffractogram of nopal cladode powder (ibid) in relation to the position and relative intensities of the peaks. This comparative match probably indicates the presence of the several Ca/Mg crystalline structures such as the presence of calcium carbonate and lower presence of calcium oxalate monohydrate. It was reported that cactus skins had high contents of calcium oxalate crystals (Ramezani Kakroodi et al. 2015) and that the synthesis method used to produce the biosorbent (alkaline conditions and washing of nopal cladodes) removes only a small portion of them (Malainine et al. 2003). In some molluscs, carboxylic acids or aliphatic alcohols act as templates for the nucleation and growth of the CaCO3 crystals (Goldberg 1993). Since this process is highly selective and nopal possesses many of these groups, an analogy of a similar formation of the calcite deposits on the FNV-S surface could be reasonably postulated. Furthermore, the biomineralization of calcite in many surfaces such as algae and biomass occurs primarily through heterogeneous nucleation (ibid).

Adsorption isotherms

Figure 4 shows biosorption isotherm which exhibits experimental data and calculated data points from the BET model. The obtained Langmuir, Freundlich, BET and Dubinin-Radushkevich parameters are listed in Table 1. The intrinsic shape or type of isotherm is dependent on the pore structure of the sorbent, the nature of the forces between the biosorbent surface and sorbate, concentration and energetic heterogeneity (Ruthven 1984). The E value (0.067 kJ/mol) as determined from the D–R equation was low and characteristic of a physical adsorption. This value of the free energy of adsorption seems too low to be consistent with the relatively good fit of the Langmuir model (R2 = 0.985), characteristic of a strong adsorption in this region (Schneider et al. 2001).

Fig. 4
figure 4

Biosorption isotherm for the present study

Table 1 Isotherm model parameters for biosorption of Cu (II) at 21 °C

Reactive crystallization (also called precipitation) is a very unique and complex process (Myerson 2002). It occurs only if the solution is supersaturated, but unlike a typical crystallization process, high supersaturation conditions are produced by a chemical reaction (therefore supersaturation is determined by the concentration of the reactants). The reaction occurs promptly and there is a simultaneous occurrence of nucleation, crystal growth and secondary proceses (Ostwald ripening and agglomeration).

The rate of nucleation (and crystal growth) is governed by the degree of supersaturation, i.e., one of the most vital operational factors in the reactive crystallization of CaCO3 (Kitamura 2009). As soon as nucleation takes place in a supersaturated solution, the formed nuclei commence crystal growth. Crystals are thought to grow in a layer-by-layer fashion. The Kossel model divides an ideal crystal face into 3 surface structures (Myerson 2002): terraces (flat surfaces), steps (which separate terraces) and kink sites (incomplete regions on steps). The crystal growth process involves surface diffusion of solute, diffusion along the step to a kink and incorporation into the lattice at the kink site.

The kinetics of crystal growth have been correlated with adsorption isotherms and several mathematical expressions were developed (Davey 1976; Rousseau et al. 1976; Leung and Nancollas 1978; Mielniczek-Brzóska et al. 2000). In general, these studies describes the relationship between the adsorption of additives and impurities at kink sites and the observed crystal growth rates using both adsorption isotherms and independent crystal growth measurements. For instance, measurements of crystal growth rate were done during the adsorption of quinoline yellow dye on the (111) crystal face of potassium alum (Rousseau et al. 1976). The growth rates were measured at various dye concentrations and a plateau was observed at a certain concentration limit. The levelling off in growth rate was associated with the adsorption capacity of the face for the dye.

The special case of the crystallization of barium sulphate, both in the presence and absence of methylenephosphonic acid (NTMP), is discussed due to the shape parallelism with our isotherm (Leung and Nancollas 1978). A strong adsorption of phosphonate ions through the formation of complexes with the barium ions at the crystal surface was modelled using the Langmuir isotherm. The adsorption took place at the crystal growth sites and the crystallization rate was proportional to the crystal area not covered by the adsorbate (in this case the additive inhibited the crystal growth). The Langmuir isotherm represented crystal growth. A linear relationship was found between the adsorption rate constants for adsorption and desorption at equilibrium with the rate constants for barium sulphate crystal growth. In the Langmuir isotherm, the first inflexion point occurred at the concentration at which the rate of the crystal growth reaction was completely inhibited. Their results indicated that adsorption took place at specific active growth sites on the crystal surface. The effect of the concentration of Cu(II) ions on the growth rates of ammonium oxalate monohydrate crystals was studied using a similar approach (Mielniczek-Brzóska et al. 2000). Like in the previous systems, the growth rate decreased with an increase in Cu(II) concentration.

We postulate that surface precipitation could occur in two steps: firstly a rapid growth on the surface plus a plateau, reached once the monolayer is completed on the biosurface (Region I, approximately drawn in Fig. 4). Within this stage, the metal is usually bound to specific sites in the biosorbent providing nucleation points. Then, the process is followed by a surface precipitation layer covering the adsorbed layer at a different crystal growth rate (corresponding to region II in Fig. 4). As the biosorbent reach saturation capacity the rate of growth decreases because all the active centres have already been occupied and no more layers can be formed.

Nonetheless, this microprecipitation model description is an ideal case. In reality there is no division between adsorption and precipitation (Goldberg 1993). Microprecipitation would occur at every point along the isotherm curve, even in the region were Langmuir seems to provide a good fit, but it would be the dominant “apparent” sorption mechanism only at high metal concentrations. An interesting description of the phenomena is provided by Goldberg (1993). The author describes two models that lead to surface precipitation, one initiated by adsorption and followed by precipitation, and another whereby heterogeneous nucleation would provide the means for the surface precipitation. In heterogeneous nucleation, three steps are usually involved: the adsorption of the ion onto the particle (one-dimensional), followed by surface nucleation (formation of a two-dimensional nucleous) and crystal growth (three-dimensional). Distinction between both cases requires a different type of study than the one done in the present report but analysis of the shape of the plot Log Qe versus Log Ce has been used to distinguish between the two models. Based on Fig. 5, given the extension of the plateau, the constant changes in pH that follows and the S-shape, heterogeneous nucleation should not be completely ruled out until further evidences could be provided to elucidate the correct model. The inorganic microprecipitation of metals on biosorbents, initiated by heterogeneous nucleation has been previously described and typically displays this isotherm shape (Kotrba and Ruml 2010).

Fig. 5
figure 5

Sorption isotherm scheme as described by Goldberg (1993)

pH variation

The study on the solution pH variation was conducted for two stages: initial variations of pH in the blank were analysed and then compared with the pH changes observed in the adsorption process. In a typical blank sample experiment, FNV-S sorbent was agitated for 24 h in deionized water previously adjusted with HNO3 (0.2 M) at pH 4.6, thus mirroring the batch adsorption isotherm study. In the blank sample, the change of pH was positive (ΔpH = 5.1 ± 0.9), indicating a basic behaviour of the biosorbent in the solution. This pH increase was correlated with the protonation of basic groups on the biosorbent surface (Escudero et al. 2017). The pH shifts in the control sample were higher than the pH variations in Cu(II) solution observed in Fig. 6, where the biggest change measured was ΔpH = 0.6. The dissolution of CaCO3 crystals in the biosorbent to Ca2+ and CO32− could be used to explain both observations and it will be discussed below. The pH of the initial Cu(II) concentrations (100 to 1750 ppm) is varied from 4.6 to 4.2, with an average of 4.4 ± 0.2. Most of the variability in the pH values, both before and after adsorption, corresponded to initial Cu(II) concentrations lower than 250 ppm. At equilibrium, an increment in pH took place in every sample and the higher the initial metal concentration was, the lower the changes in pH at equilibrium (Fig. 6). Similar results were found by Miretzky and co-workers (Miretzky et al. 2008) during the biosorption of Pb(II) metal cations onto the Opuntia Streptacantha biomass. The solution pH after equilibrium was always higher than at the beginning of the adsorption, including the control experiments. The results were attributed to the proton exchange with nopal cations in the carboxyl groups, mainly Ca2+ and K+. However, when the concentrations of Pb2+, H+ and Ca2+ after sorption were determined, there was an imbalance in the results that made it difficult to conclude if an exchange process really took place.

Fig. 6
figure 6

Earth metal concentration trends for the adsorption process as a function of initial concentration measured by ICP-MS analysis. Points A, B and C were used to build the classifier in the colour study

Figure 6 shows the amount of dissolved hard ions (mmol of Ca+2 and Mg+2) and the amount of sorbed copper ions (mmol Cu(II)) as a function of the equilibrium copper concentration in solution during batch adsorption studies. The determination of these concentrations was done using ICP-MS analysis and the blank result was subtracted from the final readings. Changes in pH during the binding equilibrium experiments were also plotted in the secondary y-axis. Three distinctive regions are observed based on the data on the hard ions. At the beginning (initial low copper concentrations), both calcium and magnesium are dissolved into the solution. At this initial stage, the concentration of magnesium found in the solution is higher than the concentration of calcium and the solution gets more acidic as the concentration of copper increases. However, once it enters the second region, the changes in pH are constant and the moles in solution for calcium and magnesium are almost equal, while the amount of Cu(II) adsorbed keeps rising steadily. Once the concentration of copper starts to increase significantly, a change in the value of these variables marks the beginning of region III. In this last stage, the amount of calcium dissolved into the solution rises and then stabilizes, while the amount of magnesium decreases and then stabilizes. Overall, there is more calcium than magnesium being released into the solution from the biomass, as opposite of what happened in Region I.

It is a well-known fact that the biosorption mechanism can be explained by bioprecipitation and biocrystallization processes if calcium carbonate was present in the biomass (Vijayaraghavan et al. 2010, 2011; Du et al. 2011). Two stages are proposed: firstly, the CaCO3 is dissolved to Ca2+ and CO32−; then the carbonate ion reacts with the metal (M) to form the precipitate with the general equation MCO3, as the whole process is pH dependent. This precipitation process is typically accompanied by an increase in pH associated with the dissociation of carbonate species from the calcium carbonate. Subsequently, the insoluble metal carbonate formed is sorbed by the polymers of the studied biomass. At low metal concentrations, the binding between the metal and the calcite is through ion exchange and complexation but at high metal concentrations dissolution–precipitation prevails.

At a working pH between 3 and 5 and in the presence of Cu2+ cations, part of the CO32− would be complexed with the heavy metal as CuCO3(s), thus avoiding its release into the solution. This would still increase the solution pH with respect to control experiments (no biosorbent) but not as much as in blank experiments (no copper). Similar results were obtained for the removal of Pb(II), Cd(II) and Zn(II) cations by different types of mollusc shells (Lee et al. 1997; Kim and Park 2001; Du et al. 2011), a biosorbent with a high calcium carbonate content. These studies showed that the removal of metal cations took place mainly by the dissolution of CaCO3 followed by the precipitation leading to crystal growth of hydrocerussite [Pb3(CO3)2(OH)2(s)], cerussite [PbCO3(s)], hydrozincite [Zn5(CO3)2(OH)6(s)], and otavite [CdCO3(s)] formed both on the surface of the biosorbent and in the solution.

Interestingly, it has also been mentioned that calcium is found acting as bridges between the carboxyl groups of cellulose, hemicellulose, pectin and lignin polymers of the biomass (Bernardo et al. 2009) which would render them exchangeable with the metal cations (Wahab et al. 2012). Furthermore, in many metal biosorption studies with Opuntia species (Barrera et al. 2006; Miretzky et al. 2008; Barka et al. 2013; Prodromou and Pashalidis 2013; Fernández-López et al. 2014; Beltrán-Hernández et al. 2015), only a sorbate-sorbent electrostatic interaction was described in most of the cases using pH, FTIR, and SEM analysis as main characterization techniques. Nonetheless, the presence or absence of calcite or other crystalline structures on the Opuntia biomass was not mentioned.

In Region I, the dissolution of magnesium was higher than the release of calcium ions. Previous studies indicated that the presence of Mg2+ ions in solution appeared to retard the dissolution calcite (Morse et al. 2007; Xu and Higgins 2011). This would explain the lesser dissolution of calcium carbonate in Region I, where the amount of magnesium in solution was higher. As the magnesium is taken from the solution in Region III, this would propel the release of calcium. As indicated previously, when the isotherm reaches point C (Fig. 6), an increase in Ca ion concentration is observed, while at the same time Mg ion concentration decreases. This can be attributed to dissolution of Ca crystals and at the same time nucleation of Mg crystal. The dissolution of Ca crystals would provide the necessary supersaturation for the formation of Mg crystals.

Colour study

In general, transition metals form coloured compounds depending on several factors such as the charge of the metal ion and the type of groups attached to the metal. The apparent colour shown by the pristine biosorbent is golden but once biosorption occurs, the biomass changes colour, shifting from green to turquoise as the concentration of copper increases (Fig. 7). This could be attributed to two different crystal formations on the biomass, namely, green malachite [Cu2(CO3)(OH)2(s)] and the other turquoise moolooite [CuC2O4ˑnH2O(s) (n < 1)]. Moolooite is a copper oxalate mineral associated with malachite and with a structure poorly understood (Demartin et al. 2018). The presence of malachite and moolooite crystals were confirmed by XRD analysis and the main findings are explained in the next section. Saturated samples at low coverage displayed two different zones, the green bulk material and some lighter grains that turn blue as the concentration of copper increases. Spectral data at both locations were considered and incorporated to the model. Pre-processed reflectance spectra were recorded on the dried solid fibres (Fig. 8) and was statistically analysed to correlate the colour changes to chemical features. The spectrum in the 400–1000 nm wavelength range was used. As Fig. 8 shows, the signal seems sensitive to the changes in copper concentration at different wavelengths.

Fig. 7
figure 7

VSC images of the biosorbent at different stages of the isotherm curve. The number indicates the corresponding initial copper concentration (mg/L) used in each experiment

Fig. 8
figure 8

Pre-processed UV–Vis spectra and corresponding microscopic images of biosorbent particles at equilibrium conditions. The numbering represents the initial Cu(II) concentration (mg/L) used per experiment. Intermediate concentrations were omitted to improve visual clarity

There were two markers, 427 and 558 nm wavelengths, able to discriminate between groups (using both two- and three-class classifiers). The wavelengths of light reflected by the surface of the biosorbent and selected by the STEPDISC method corresponded to the colours blue (427 nm) and green (558 nm). The next step after selecting the important predictors was to conduct linear discriminant analysis. The most optimum model for classification was obtained when the crossover point B from Fig. 6 was used to build the discrete class attribute. The continuous attribute was the discriminator wavelength 427 nm, filtered through the STEPDISC previous method. Table 2 shows the classification functions with their statistical evaluation as well as their validation analysis.

Table 2 Classification functions for dissolved hard metals concentration pattern

The significance of the difference was checked using a multivariate analysis of variance (MANOVA) and two transformations of its lambda, Bartlett and Rao transformations. A significant difference was found when the Wilks’ lambda statistic (0.021) was computed. The closer it is to zero, the better the separation is (Rakotomalala 2005). According to Rao’s transformation (for small sample sizes, p < 0.01), the measured difference on the observations did not seem due to chance (Rao-F (1,4) = 186.9074, p value 0.0002). Error rate estimation included CV, bootstrap, LOO and independent test sets. The model is stable and shows low classification error. The good separation observed in the boxplot of Fig. 9 also confirms the differences between the two groups based on the single wavelength and indicates the relationship between changes in calcium and magnesium contents in solution and the colour changes observed. A model including the 558 nm wavelength as additional predictor is also possible. However, it does not seem to give better results than the one explained above. This second model showed bigger separation between groups (Wilks’ lambda statistic of 0.0049) but higher classification error in the test set (0.0533). The wavelengths subset from the STEPDISC procedure and the chemical features previously described were used as input in an exploratory data analysis to visualize the relationship between the samples and the predictors. Most of the data was modelled using just the first two principal components; this corresponded to a cumulative percentage eigenvalue of 89.59% (59.88% and 29.70% for PC1 and PC2, respectively).

Fig. 9
figure 9

Boxplot of the differences between calcium and magnesium dissolved in the solution based on the different intensities measured at 427 nm

The scores extracted from PCA were used for interpreting the samples and loadings to determine which variables were related to the samples. The scores and the loadings were overlaid in what was called a biplot (Fig. 10). Three distinctive groups can be observed in the data. From this analysis, it can be concluded that the dissolved magnesium is more positively associated with the wavelength 558 nm and Region II (Fig. 6). On the other hand, the pH variations, wavelength 427 nm, dissolved calcium and the adsorption capacity are the variables responsible for the formation of the first principal component and related to Regions I and III (Fig. 6). In this case, the adsorption capacity is positively associated with the amount of calcium released into the solution and both have an inverse relationship with the changes in pH and the wavelength 427 nm. The colour gradation as a function of Cu (II) initial concentration is illustrated in Fig. 11.

Fig. 10
figure 10

Biplot (loading vectors for first two principal components) showing the correlation between the variables and the principal components

Fig. 11
figure 11

Colour gradation as a function of Cu (II) initial concentration (mg/L)

XRD study and mechanism of crystal formation

This section compares the XRD spectra of saturated biosorbent samples after the contact period of 24 h as a function of the initial copper concentration (Fig. 12). Three types of crystalline structures were identified by XRD analysis: calcium oxalate (CaC2O4ˑH2O) at 2θ = 15.0°, 24.5°, 30.2°, 36.1° and 38.2°, malachite (Cu2CO3(OH)2) at 2θ = 14.8°, 17.57°, 24.1°, 31.32° and moolooite (CuC2O4ˑnH2O) at 2θ = 22.9° and 36.2°. While higher concentrations of copper in the sorption experiment led to an increase of copper oxalate in the final precipitate, the amount of calcium oxalate and malachite showed a decrease as the initial Cu(II) concentration increased. The confirmation of the presence of these two crystals, malachite and moolooite, in the exhausted solid suggests the hypothesis whereby malachite would transform into moolooite by a case of reactive crystallization and the magnesium ion would play the role of stabilizing the final copper oxalate precipitate. Two important examples of this transformation can found in the literature.

Fig. 12
figure 12

XRD as a function of the Cu (II) initial concentration (mg/L)

Green copper pigments, such as malachite, are known to suffer chromatic alterations associated with oxalate formation in art works (Castro et al. 2008; Rosado et al. 2013). The biodegradation of malachite to copper oxalates like moolooite through copper intermediates was observed in these paintings (Castro et al. 2008). The authors postulated a similar mechanism to the one reported in the present study. In their system, the action of microorganisms excreting oxalic acid on the green pigments was responsible for the transformation of malachite into moolooite whenever the system contained enough oxalic acid. The oxalic acid attacked the calcite (CaCO3) of the cellulose support to produce calcium oxalate: \( H_{2} C_{2} O_{4} + CaCO_{3} + H_{2} O \to CaC_{2} O_{4} \cdot 2H_{2} O + CO_{2} \left( g \right) \) and suitable moist conditions produced an acidic environment to initiate the reaction. The evolution of pH represented as a function of the concentration of oxalic acid was also illustrated and resembles the one reported in Fig. 6. Based on their findings, the pH dropped during the decay of malachite (Fig. 6—Region I) and then remained constant during the formation of copper intermediates (Fig. 6—Region II) but when moolooite, the final product of the degradation, was formed a significant pH drop was observed (Fig. 6—Region III). The chemical composition of their system included the presence of calcium oxalate dihydrate (weddellite, CaC2O4ˑ2H2O). In our system calcium and magnesium oxalate are part of the mineral composition of the FNV biomaterial together with amorphous calcite (Monje and Baran 2005). However, the hydration state of calcium oxalate differs. Only monohydrate (whewellite) calcium oxalate is found in Opuntioideae species (Monje and Baran 2005). Apparently, these differences in the polymorphism of the mineral oxalates do not seem to affect the mechanism.

The transformation of malachite to moolooite is likely to be involved as well in renal stone investigations. Kidney stones are hard, rock-like crystals with variable crystal habit and chemical composition (Selvaraju et al. 2013). However, some generalizations can be made about them (Khan et al. 1996; Singh and Rai 2014): (a) calcium is the predominant element in most human urinary stones combined with oxalate and phosphate in the form of calcium oxalate, calcium phosphate and calcium carbonate; (b) Heavy metals may take part in the initiation of stone crystallization and copper was seen to play an important role in kidney stone formation; (c) the amount of copper stored in the stones is significantly higher if compared with other trace elements.

The biomineralization mechanism of urinary stones is still under debate (Selvaraju et al. 2013; Singh and Rai 2014) and in particular, the role of magnesium in kidney stone formation remains unsolved due to contradictory scientific results (Ryall 2011). The emphasis of current investigations is to explore the role that major and trace elements play in the mechanism of formation of these stones. In the case of magnesium, its role in kidney stone formation might depend on the initial composition of the urine. In particular, in urinary stones where calcium oxalate is the predominant component (typical composition in Asiatic patients as opposed to Western patients that also contains calcium phosphate), Fourier Transform-Raman spectroscopy analysis revealed the presence of calcium oxalate, moolooite and glushinkite (magnesium oxalate) as part of the stone chemical composition (Selvaraju et al. 2013). By analogy with our proposed mechanism (Fig. 13), if the magnesium was taken from the urine during the crystallization process to stabilize moolooite, this would explain why Asiatic stone patients with higher copper levels than healthy controls have magnesium levels in their urine lower than the controls (Atakan et al. 2007; Ryall 2011), an affect that still puzzles researchers.

Fig. 13
figure 13

Reactive crystallization mechanism of the transformation of malachite into moolooite

Conclusions

A novel biosorbent has been successfully synthesized via alkali treatment of nopal fibres and used as heavy metal biosorbent. The relationship between colour changes observed in the biosorbent as complemented by spectroscopic analysis with equilibrium sorption data have been described. Several crystalline structures containing Ca and Mg were identified on the surface of the biosorbent, including an important presence of calcium carbonate crystals. Overall, these findings contribute to the understanding of calcium carbonate dissolution mechanism from a biomass surface as a function of the amount of magnesium being released and the concentration of copper ion present in the solution. As a result of the microprecipitation process, two types of precipitate formation were observed. At low copper concentrations, malachite crystals were dominant on the cactus biomass but as the concentration of copper increased, moolooite predominates. An important finding from this study is the specific role magnesium played in the transformation of malachite crystals into moolooite. As the new crystal formed, the system displayed a polymorph-specific evolution of pH and Mg/Ca ratio. Finally, the reactive mechanism here described might contribute not only to the understanding of the biosorption mechanism of heavy metals on plant biomass but also elucidate the mechanism involved in the biodeterioration of artwork by microorganisms through oxalate formation and complement actual knowledge on the mechanism of kidney stone formation.