Introduction

An increase of population results in intense urbanization and industrialization growth, which entails the increase of the wastes, including those of organic origin. Such wastes are hazardous for ecosystems; thus, the reduction of the wastes and effective resource management become an essential issue [1, 2]. New, cheap and ecological methods of wastes management are needed. One of them is wastes processing into activated carbons leading to large reduction of wastes amount while obtaining materials capable of cleaning the natural environment which is in line with the principles of "green chemistry".

The waste sources used as precursors of organic matter are very numerous. Household wastes, such as unused parts of fruits [3, 4], coffee wastes [5, 6], sawdust and other wood processing wastes [7], energy-rich crops [8], textile [9] or food wastes [10, 11] and many others, account for their large amount. It should be also remembered that these wastes are characterized by a specific structure and porosity, which affects the properties of new materials to some extent. They are expected to be characterized by a large surface area, well-developed porous structure and specific functionalities, resulting in great sorption capacity. However, the materials originating from various wastes are characterized by the significant surface heterogeneity due to their origin, which also affects the adsorption properties of ACs.

The surface and structural heterogeneities of activated carbons can be assessed using thermal methods. Such methods include, for instance, thermogravimetric analysis under the quasi-isothermal conditions (Q-TG) and differential scanning calorimetry in the area of low temperatures (cryoporometry DSC). The Q-TG method is used to analyze water (or other liquid) films adsorbed on the solids surface. The quasi-isothermal conditions enable controlling the temperature in such a way that the individual stages of liquid desorption, resulting from the different structure and surface chemistry of the solid (which causes differentiated interactions with the water molecules), proceed under constant temperature conditions [12,13,14,15,16]. This is the effect of different energy characteristics of the interactions at the carbon/liquid interface.

The dependence of the liquid molecules interactions strength on the structure and surface of a solid is also observed with the use of differential scanning calorimetry as the cryoporometric method. According to the Kelvin theory [17, 18], the behavior of a liquid during the phase changes in a limited space (in pores) is determined by the size of the pore radius and the possibility of interactions at the adsorbate/adsorbent interface related to the polarity of both media [19, 20]. The use of these methods results from the fact that water is constantly present in the surrounding atmosphere and is an active component of adsorption processes taking place in our environment. Therefore, it is necessary to get to know its positive or negative influence on the adsorption (e.g., of dyes) or chemisorption of gases and vapors as well as its potential influence on possible catalytic processes.

The aim of the paper was the characterization of the surface and structural heterogeneities of the activated carbons obtained from the household wastes (coffee wastes). The tests were carried out the using quasi-isothermal analysis (Q-TG) and low-temperature differential scanning calorimetry (DSC cryoporometry). The initial characteristics of the selected activated carbons were presented in [5, 21]. The results develop the knowledge of the water molecules interactions with the surface which leads to the assessment of the adsorption capacity of the tested materials. Therefore, the adsorption properties of the selected carbon materials in relation to methylene blue were also investigated.

Materials

The reagents used in this research were commercially available: H3PO4 (85 mass%; d = 1.71 g cm−3; analytical grade; STANDARD, Poland), methylene blue (CHEMPUR, Poland).

Preparation of ACs

The spent coffee grounds (Arabica) from the households were used as a precursor. After washing with redistilled water and drying at 100 °C for 24 h, the raw material was fractionated and the 1–2 mm fraction was used in the studies. 100 g of the starting material was flooded with the appropriate amount of phosphoric acid (I = 1, 1.5 and 2 w/w (mH3PO4/mprecursor); 85 mass%, d = 1.71 g cm−3) diluted with redistilled water to the volume of 150 mL or 350 mL (Table 1). A larger amount of water (350 mL) was used for better penetration of the material by the impregnating agent. The prepared suspensions contained the amount of H3PO4 sufficient to obtain the assumed degree of impregnation. The suspensions were sonicated (3 × 10 min cycles) and placed on a shaker (30 °C/24 h/60 rpm). After 24 h before the pyrolysis process, a portion of the material was rinsed with a little amount of redistilled water (400 mL, procedures 1–3, Table 1) to remove the acid excess from the inter-particle spaces. The other part was left without washing off acid excess (procedures with the acid excess, 1-ex, 4-ex, Table 1). The impregnated materials were dried for 12 h at 100 °C.

Table 1 Preparation procedure and scheme of the pyrolysis temperature programs

Carbonization of the impregnated precursor

Carbonization of the impregnated materials was conducted according to the temperature programs presented in Table 1. The carbonization processes were run with the use of the multi-stage pyrolysis by introducing isothermal stages at selected temperatures to reduce the amount of by-products and to obtain the material with the developed surface. The processes took place in the N2 atmosphere (flow rate 150 mL min−1). Only in the case of 3-CO2 procedure, in the sample annealing stage at the temperature of 800 °C, CO2 was added as the oxidizing agent [5]. After the pyrolysis, the materials were washed with hot redistilled water to a neutral pH and dried for 12 h at 100 °C. The assay of the materials indicated a degree of impregnation (1, 1.5 or 2) and the number of the procedure (e.g., 1 or 1-ex and others). For example, the carbon designated AC-1.53-CO2 was obtained from the coffee waste with the impregnation degree 1.5 using the 3-CO2 procedure (Table 1).

Methods

Nitrogen adsorption/desorption

The materials textural characterization was made using the low-temperature (77.4 K, Micrometrics, ASAP 2405, Norcross, USA) nitrogen adsorption–desorption isotherms data. The specific surface area (SBET) was calculated based on the standard BET method [22]. The nitrogen desorption data were used to compute the pore size distributions (PSD), differential fV(R) ~ dVp/dR using a model of complex pores with the predominance of slit-shaped ones [23]. For the calculations, the SCR (self-consistent regularization) procedure under the non-negativity condition (f (Rp) > 0 at any pore radius R) was used. The value of the regularization parameter was α = 0.01. The differential PSD curves with respect to the pore volume fV(R) ~ dVp/dR were redefined as the incremental PSD (IPSD, \(\sum\Phi \) v,i(R) = Vp). The fV(R) functions were also used to calculate contributions of micropores (Vmicro and Smicro at R ≤ 1 nm), mesopores (Vmeso and Smeso at 1 nm < R < 25 nm) and macropores (Vmacro and Smacro at R > 25 nm) to the total pore volume and the specific surface area. The total pore volume Vp was calculated as a sum of Vmicro, Vmeso and Vmacro values. The Δw (the deviation from the assumed pore model) was calculated on the basis of the formula: (SBET/Sslit)–1 where Sslit is the specific surface area calculated with the assumed slit-shaped pore model; Sslit = Smicro + Smeso + Smacro [23].

The elemental analysis

In order to conduct the elemental analysis, the analyzer CHNS EuroEA3000 (EuroVector) was employed. The hydrogen, carbon, nitrogen and oxygen contents (%) were determined.

Quasi-isothermal water desorption

The water vapor was adsorbed on the carbons surface at 25 °C. Two grams of each sample was placed in the desiccator with the bidistilled water for 72 h. Then, the weighed portions (~ 50 mg) of the saturated materials were placed in a spiral platinum crucible. The thermodesorption of water under the quasi-isothermal conditions was performed using the Derivatograph C (Paulik, Paulik and Erdey, MOM, Hungary). On the basis of the obtained results, there were determined the values characterizing the tested materials: the total amount of adsorbed water (TGmax), the amount of weakly (TGw) and strongly (TGs) bound water, the surface free energy at the adsorbent/water interface as well as the number of statistical water monolayers [24,25,26]. The calculation procedures are included in the SI.

Low-temperature differential scanning calorimetry (cryoporometry DSC)

The calorimetric studies (DSC) were carried out with the differential scanning calorimeter (DSC PYRIS Diamond, Perkin Elmer, USA). The temperature calibration was performed using the redistilled water (Tm = 0 °C) and the indium standard (Tm = 156.6 °C). The ice melting curves (from −120 °C to 20 °C, 2 °C min−1) were used to determine the PSDv curves. The tests were carried out after the first freezing because according to reports [27] formation of ice crystals during the water freezing in the pores causes the increase of R and V of mesopores. Therefore, when using water as a medium, it is recommended to conduct an analysis based on the DSC curves from the first measurement. This remark applies especially to the materials with a delicate structure, including carbon materials. Before testing, the samples were saturated with water vapor in the desiccator (25 °C, 72 h). The degree of water saturation was determined from the thermogravimetric measurements (Q-TG). The weighed samples (~ 5 mg) were sealed in the aluminum pans. The reference sample was an empty aluminum crucible. The research was carried out in the inert gas atmosphere—helium. Nitrogen was used as the curtain gas.

During the DSC data analysis, the thickness of the non-freezing water layer was taken into account (0.8 nm [28]) corresponding to the three water statistic monolayers [29]. On the basis of the DSC curves of ice melting, the transition temperatures (Tonset), the temperatures at which the ice melting rate was the highest (Tmax), the pore radius and the dV/dR dependencies have been determined. The calculation procedures are included in the SI.

Raman spectroscopy

The Raman spectroscopy investigations were carried out by means of inVia Reflex (Renishaw, UK) with the Raman dispersive system using the 514 nm argon laser. The application of 1.4 mW of laser power prevented from sample overheating.

Kinetic studies

In the adsorption studies, the batch method was applied. The kinetic investigations were carried out at the temperature of 30 °C. Methylene blue (MB, C0 = 700 mg L−1) was used as the model contaminant. The previously prepared solutions (0.025 L) were added to the conical flasks which contained the appropriate amount of adsorbent (0.05 g). The flasks with the solution and activated carbon were placed on a shaker (75 rpm, 222 h). Changes in the dye concentration at the specified intervals were evaluated using a UV–VIS spectrophotometer ("Helios Gamma", Spectro-Lab, Poland) at the wavelength of 664 nm. In the paper, the kinetic process in the solid–liquid system is described by the pseudo-first-order equation, the pseudo-second-order equation, the Elovich kinetic model as well as the intra-particle diffusion model [30]. The calculation procedures are included in the SI.

Determination of adsorption isotherms

For determination of the adsorption isotherms, the MB solutions of the appropriate concentrations (300–1000 mg L−1) were used. The specified amounts (0.05 g each) of activated carbon were placed in the Erlenmeyer flasks, and then, the MB solutions were added. Next, they were put on the shaker (30 °C, 75 rpm). After 130 h (the time required to reach the adsorption equilibrium at saturation), the solutions concentrations were measured. The Langmuir, Freundlich and Radke–Prausnitz adsorption isotherms models were used to determine the basic parameters of the adsorption process [31, 32]. The calculation procedures are included in the SI.

Moreover, the average absolute percentage deviation (%Dev) was calculated. This value indicates the difference between the qe values obtained on the basis of the studies.

(qe,exp) and the predicted values (qe, pred) [33]:

$$ \% {\text{Dev }} = \left( {\frac{1}{N}\mathop \sum \limits_{{{\text{i}} = 1}}^{N} \left| {\frac{{q_{{{\text{e}}, \exp - }} q_{{{\text{pred}}}} }}{{q_{{{\text{e}}, \exp }} }}} \right|} \right) \cdot \le 100\% $$

Moreover, the standard deviation was calculated.

Results and discussion

Structural characteristics

The elemental composition of the starting material and activated carbons is presented in Table SI 1 (Supplementary Information). The starting material (SCGs) is characterized by relatively high hydrogen (8.08%), oxygen (39.85%) and carbon (49.87%) contents. This indicates that SCGs are an appropriate source of carbon matter for preparation of carbon adsorbents. For all obtained ACs, the contents of hydrogen (1.64–2.64%), oxygen (28.98–35.87%), nitrogen (2.10–2.78%) and carbon (59.61–66.30%) are very similar. That is why one can assume that the impregnation ratios as well as the pyrolysis procedures did not have a significant effect on the elemental composition.

Table 2 shows the structural parameters of the tested materials. The data analysis proves that these materials have a fairly well-developed surface area and pore volume. They are characterized mainly by the micro/mesoporous structure.

Table 2 Structural characteristics of the carbons

As follows from the presented data, the percentage of the micropore area (%Smicro) in the materials obtained according to the procedures without the acid excess (procedures 1–3) is approx. 75–79% (share of the micropore volume %Vmicro is c.a. 62–69%). The average pore radius (Rav) of these materials is about 0.9–1.5 nm (Table 2). The obtained data indicate very small macropore contents. A slightly smaller proportion of micropores is found in the case of the materials pyrolyzed in the presence of H3PO4 excess. The shares of the micropores area are ~ 52.1–65.9%. (%Vmicro is below 50%.)

Figure 1 shows the curves of the pore volume distribution in relation to their mean radii for the tested carbons. One can see the clearly developed maximum in the range of Rav values presented in Table 2. There are also the peaks indicating the presence of small amounts of meso- and macropores. The presented peaks are quite wide; however, the PSDv distributions show the monomodal character of the pores. The small values of Δw (Table 2) indicate a good adjustment of the assumed pore model.

Fig. 1
figure 1

Pore volume distribution curves for the activated carbons

A significant content of micropores favors the adsorption properties of the tested carbon materials; therefore, a thorough characterization is desirable, especially in terms of hydrophilic properties and the possibility of interactions of water molecules (as a common solvent).

Quasi-isothermal analysis

The results of water thermodesorption (Q-TG%) under the quasi-isothermal conditions for the activated carbons are presented in Fig. 2. The slight inflection points correspond to the consecutive stages of water evaporation in different energetic states. The differentiated energetic stages of water are due to various interactions with the carbon surface [34]. The first is unbound (free, strongly associated) water located in wide mesopores and macropores. Such molecules do not interact with the pores walls and are characterized by the bulk water properties. The second type is weakly bound water which is characterized by weak interactions with the solid surface and freezes (DSC) at the temperatures slightly below 0 °C) but evaporates (Q-TG) at a little over the boiling point (100 °C). The third type is strongly bound water which interacts strongly with the solid surface through hydrogen bonds or electrostatic interactions, especially with the participation of surface functionalities. Strongly bound water in the micropores remains unfrozen at about T < −15 °C or is desorbed from the carbon surface at a temperature higher than the boiling point of weakly bound water [35] because of strong interactions of water molecules and surface functionalities or heteroatoms. Weakly and strongly bound water can be in the form of large aggregates or clusters located on the polar/non-polar surfaces. The contributions of the different forms of water depend on the pore structure and surface chemistry of the pore walls. Thus, water thermodesorption took place not exponentially but gradually. This points out to the change in the properties of the water layer depending on the distance from the solid surface.

Fig. 2
figure 2

Course of the curves Q-TG% (a, b) and Q-DTG (c, d) for the materials obtained according to the procedures without the acid excess (a, c) and with the acid excess (b, d) under the quasi-isothermal conditions and the dependence of the changes of ΔG value on the concentration of adsorbed water for the exemplaryAC-23-CO2 sample (e)

During the thermodesorption under the quasi-isothermal conditions to the temperature of ~ 100 °C, the liquid excess outside the adsorbent pores (i.e., physically bound water or bulk water) evaporates. Due to the interactions between the adsorbate and the ACs surface, water desorption takes place in the pores at higher temperatures. As the materials were pre-saturated with the water vapor (72 h, 25 °C), they contained a minimum amount of moisture which was desorbed at 100–105 °C (Fig. 2a, b). Table 3 presents the characteristics of the adsorbed water layers. The values of TGw (experimental data) and \({\mathrm{C}}_{\mathrm{H}2\mathrm{O}}^{\mathrm{b}}\) (calculated data) represent the concentrations of physically bound water which constitutes about 10–15% of the total adsorbed water (\({\mathrm{TG}}_{\mathrm{max}}^{300}\); \({\mathrm{C}}_{\mathrm{H}2\mathrm{O}}^{\mathrm{max}}\)). These values are characterized by great compliance (Table 3).

Table 3 Characteristics of the adsorbed water layers on the surface of ACs

The course of the analyzed curves (Fig. 2a,b) in the second stage shows that the total mass loss in the temperature range from 100 to 300 °C is greater for the 1-ex and 4-ex procedures (Fig. 2b). For example, for the AC-1.51 sample the maximum Q-TG% mass loss is 16.7%, while for the AC-1.51-ex it is 22.1%. This suggests that the use of the procedures with the acid excess results in obtaining materials with a better developed surface which is consistent with the structural data presented in Table 2.

The analysis of the curves (Fig. 2) for the AC-1.51 and AC-1.51-ex samples indicates a greater mass loss observed for the materials obtained according to the excessive procedure and is related to the larger pore size in this material (AC-1.51-ex). Such observations are consistent with the data obtained from the N2 adsorption (Table 2) which shows that owing to the excessive procedures materials with a significant content of mesopores are obtained.

The Q-TG analysis indicates better surface development with the extended pyrolysis stages. The maximum Q-TG300 mass loss for the sample obtained according to the 4-ex procedure is the largest of the tested materials (e.g., AC-24-ex sample, Q-TG% = 27.4%) and confirms its greatest porosity (Vp = 0.378 cm3 g−1, Table 2). A positive effect of developing a porous structure is also indicated by the Q-TG curves for the materials pyrolyzed in the CO2 atmosphere (AC-1.53-CO2 and AC-23-CO2). In the series of the materials obtained based on the procedures without the acid excess (Fig. 2a), these materials are characterized by the largest mass loss of the water adsorbed inside the pores (Table 3).

Various stages of water thermodesorption are clearly visible on the Q-DTG curves (Fig. 2c, d) where the fundamental differences in the curves course can be seen. In the first step at a high degree of surface hydration, all pores remain filled with water and only the bulk water (moisture) is evolved. Such an effect can be seen for the samples from procedures1 and 2 at the temperature of ~ 100 °C (Fig. 2c). At this temperature, the water evaporates at the water/air interface. The second stage of water mass loss occurs at a higher temperature and is associated with the water desorption from the pores. This effect is found for the carbons prepared according to the procedures with the acid excess (procedures 1-ex and 4-ex; Fig. 2d) as well as procedure 3 (Fig. 2c). The shift of temperature at which water desorption is the fastest results from the different porosity of the materials. The carbons obtained according to procedure 3 have a larger share of micropores (e.g., AC-23-N2, %Vmicro ~ 65%, Table 2) and smaller sizes (Rav ~ 1.4 nm, TQ-DTG = 122 °C, Fig. 2c) than the materials obtained according to the procedures with the acid excess (e.g., AC-24-ex, %Vmicro =  ~ 33%, Rav ~ 1.9 nm, Table 2); therefore, the water desorption from the latter takes place at a lower temperature (TQ-DTG = 118 °C, Fig. 2d).

Figure 2e shows the dependence of the change in the free energy (ΔG) of water as a function of its concentration (CH2O) on the surface for the exemplary AC-23-CO2 sample. For all obtained materials, these dependencies ΔG = f(CH2O) have a similar course. In the first stage of the water desorption process (high values of adsorbed water concentration), the water concentration changes are small and do not exceed 15% of the initial adsorbed water concentration (Fig. 2e, the bulk water,\({\mathrm{C}}_{\mathrm{H}2\mathrm{O}}^{\mathrm{b}}\)). After reaching the temperature corresponding to the boiling point of the water contained in the pores (ΔGb = GG0 = 15 kJ mol−1; 100 °C), desorption of the more strongly adsorbed water begins.

The water evaporation started at ΔG65 = 8.7 kJ mol−1 (T = 65 °C). The total desorption process took place in a relatively wide temperature range (Fig. 2a, b) due to the microporous nature of the carbons. With the temperature increase, the adsorbed water remained only in the micropores in the form of thin layers or clusters. A further increase in the temperature caused the thermodesorption of water bound directly to the adsorbent surface (the so-called strongly bound water, \({\mathrm{C}}_{\mathrm{H}2\mathrm{O}}^{\mathrm{s}}\)). On the basis of the dependence ΔG = f(CH2O) (Fig. 2e), the values of the total surface free energy at the adsorbent/water interface were determined (Table 3, ΔG). Parts of the area corresponding to the low concentrations of adsorbed water (highlighted grey triangle, Fig. 2e) were used to calculate the surface free energy at the adsorbent/strongly bound water interface (Table 3, \({\Delta G}_{\sum }^{s}\)).

Table 3 presents the characteristics of the water layers adsorbed on the surface of the tested activated carbons. A great compliance of the parameters obtained directly from the TG% (Fig. 2a, b) (\({\mathrm{TG}}_{\mathrm{max}}^{300}\), TGw, TGs) with the calculated values using the equations Eqs SI 1–SI 3 is observed. An increase in the maximum concentration of the adsorbed water (\({\mathrm{C}}_{\mathrm{H}2\mathrm{O}}^{\mathrm{max}}\)) was found with the increasing impregnation ratio. For the materials prepared based on the 1-ex and 4-ex procedures, these values are much higher compared to those of the remaining carbons because they are characterized by a much better developed surface and porosity (Table 2) exhibiting better sorption properties. In the case of strongly adsorbed water concentration, \({\mathrm{C}}_{\mathrm{H}2\mathrm{O}}^{\mathrm{s}}\), an inverse relationship is found. Its values decrease with the increasing impregnation degree.

Table 3 presents the values of the total surface free energy at the adsorbent/water interface (ΔG) and the surface free energy at the adsorbent/strongly bound water interface (\({\Delta G}_{\sum }^{s}\)). The highest values of the discussed parameters were determined for the materials with the least developed surface (procedures 1 and 2).

Figure 3a–c shows the dependence of the effective radius of the evaporating droplet on the adsorbed water concentration for the selected adsorbents (AC-1.51, AC-1.53-N2, AC-1.54-ex). It is assumed that the size of the evaporating droplet depends on the pore size of the tested material. For most of the carbons, the evaporating water droplet size distribution has a bell shape and corresponds to the Gaussian type model (Fig. 3b). However, in some cases (carbons obtained according to procedure 1) the obtained profiles differ from the Gaussian model (AC-1.51 Fig. 3a). In the above cases, there can be observed 2 maxima on the evaporating droplet size distribution curves indicating a biporous structure of the tested carbon. This was also demonstrated on the Q-TG (Fig. 2a) and Q-DTG (Fig. 2c) curves. The shape of the curves in question indicates that in the initial stage of water thermodesorption (low temperature, high CH2O) the effective radius of the evaporating droplet is small, and with a decrease in the water concentration (with the increasing temperature), it increases to the value determining the radius of the dominating pores (Rdom). A further temperature increase causes a decrease in the concentration of the adsorbed water and a decrease in the size of the effective radius of the evaporating droplet.

Fig. 3
figure 3

Dependence of the effective radius of the evaporating droplet on the concentration of the adsorbed water for the materialsAC-1.51 (a), AC-1.53-N2 (b) and AC-1.54-ex (c) as well as the dependence of dG/dM under the conditions of small surface filling with the adsorbed water for the materials AC-1.51 (d), AC-1.53-N2 (e) and AC-1.54-ex (f)

Figure 3d–f presents the dependence of dG/dM as a function of the number of water statistical monolayers (n) under the conditions of small water coverage where dG/dM indicates the change in the free energy of the system during the water evaporation from the surface. In the area of low water saturation, there are 1 to 3 statistical monolayers of water filling the micropores on the surface of the materials [36]. There can be observed numerous maxima in the presented relationships (e.g., the inset in Fig. 3d–f), pointing out to the formation of various water clusters on the heterogeneous surface of the tested activated carbons [24].

Cryoporometry DSC

The porous structure of the obtained activated carbons was also determined using the low-temperature DSC as a cryoporometric method. The DSC cryoporometry is based on the phenomenon of decreasing the liquid freezing point (in this case: the water) as a result of its entrapment in the pores of the tested materials. The theory assumptions and the relationships are presented in the SI (Eqs SI 4–SI 7).

The degree of pore filling by media of different polarities depends on the nature of the surface of the tested material and is related to its porosity [37]. It was assumed that ice melts in the narrowest pores (Rmin) at Tonset, while the Tmax corresponds to the water melting in the pores of the average size (Rav). The characteristic ice melting points in the tested materials are given in Table 4.

Table 4 Characteristic ice melting points determined on the basis of DSC curves of the tested adsorbents

The analysis of the obtained DSC curves indicates a multi-stage course of the ice melting process. There are observed shifts of characteristic temperatures (Tonset) toward smaller values with an increase in the impregnation degree and an extension of the pyrolysis process time (except for the 3-CO2 and 4-ex procedures). Moreover, a decrease in the melting point of the ice contained in the pores (in the range −3.99 to −5.65 °C) in relation to the melting point of the volumetric ice (0 °C) (Table 4) can be seen. The reduction of ice melting temperature is a result of the interactions of water with the surface of narrow pores of the tested materials (Table 2).

Figure 4a, b shows the curves of pore volume distribution in relation to their mean radii obtained from the ice melting curves. The δ layer thickness (0.8 nm) was taken into account in the calculations. Cryoporometry tests using water showed that the investigated ACs are characterized by a narrow pore size distribution and the value of the dominant radius is about 1.1 nm. Such values are close to the results presented in Table 2, although due to the different specificity of the used methods there is no complete agreement. The observed trends of changes in the height of the discussed curves confirm the increase in the volume of micropores with the increasing degree of impregnation (Fig. 4).

Fig. 4
figure 4

Curves of pore volume distribution against their mean radii for the materials obtained according to the procedures without (a) and with (b) the acid excess obtained by the analysis of the ice melting curves

Raman spectroscopy

The Raman spectra obtained for the selected activated carbons are given in Fig. 5. The position and shape of the spectrum, ascribed to the specific form of carbon, provide the information about the structures (i.e., crystalline, nanocrystalline or amorphous) in a given material [38]. In the case of activated carbons, one can observe two characteristic bands: a wider D-band (~ 1360 cm−1) attributed to the disordered carbon and a narrower G-band (~ 1580 cm−1) corresponding to the graphite domains [39]. In order to analyze the obtained materials, the ratio of the D and G ID/IG bands intensity is also determined indicating the graphitization degree. It is assumed that the ID/IG ratio 0.85–1.00 indicates the non-graphitic nature of activated carbons [40, 41].

Fig. 5
figure 5

Raman spectra of the selected activated carbons

In the presented spectra (Fig. 5), a significant increase in the intensity of the D and G bands for the AC-24-ex sample compared to the other materials can be found. This effect may be due to the use of acid excess procedures and the introduction of isothermal intermediate stage during the pyrolysis process. No significant changes were observed in the position of the G bands which determines the type of carbon material structure (Fig. 5). The ID/IG band intensity ratio is in the range 0.92–0.96 (Fig. 5) which may indicate a largely disordered graphene structures with a significant sp3 content. The obtained results indicate the non-graphitic, i.e., amorphous nature of carbons.

Kinetic studies

The research on the possibility of using the obtained activated carbons in the process of dye adsorption was carried out with the use of the best developed surface materials (AC-1.53-CO2 and AC-23-CO2).

Figure 6a shows the kinetics of the methylene blue adsorption process for the two tested activated carbons, i.e., AC-1.53-CO2 and AC-23-CO2. As can be seen in the initial stage (about 20 h) the dye adsorption on both tested materials was very intensive. However, due to the fact that the tested materials contain mainly micropores (AC-1.53-CO2%Smicro = 76.3 and AC-23-CO2%Smicro = 74.5; Table 2), the equilibrium state was achieved after about 130 h.

Fig. 6
figure 6

Kinetics of methylene blue adsorption (a) and intra-particle diffusion model of the adsorption process (b) on the carbons AC-1.53-CO2 and AC-23-CO2 as well as the nonlinear fitting of the isotherm models for the samples: AC-1.53-CO2 (c) and AC-23-CO2 (d)

For better understanding of the kinetics of methylene blue adsorption on the tested materials, kinetic parameters were determined for the pseudo-first and pseudo-second-order kinetic models using the linear relationships (SI, Eqs SI 8 and SI 9). The determined parameters are presented in Table 5a. The obtained results indicate that in the case of PFO the calculated qe, calc ones are much closer to the experimental qe, exp values than the qe, calc values determined from the pseudo-second order equation. However, the correlation coefficient R2 for both materials reaches higher values for the pseudo-second order model (R2 = 0.96–0.99). Thus, it can be concluded that the pseudo-second order model describes the kinetics of methylene blue adsorption on the tested activated carbons better.

Table 5 The calculated parameters values in the linear forms of the kinetic models for the studied materials (a, b)

The tested adsorbents were assumed to be characterized by the energetic heterogeneity which means that there are active centers with different binding strengths of the dye molecules on their surface. The chemisorption process can also take place on this type of surface [42, 43]. Therefore, the Elovich kinetic model (SI, Eq. SI 10) was applied. As follows from the results presented in Table 4a, large values of the correlation coefficient R2 = 0.90 for AC-1.53-CO2 and R2 = 0.94 for AC-23-CO2 (Table 5a) prove that the adsorption rate is also affected by the chemisorption process. However, the experimental data (Table 5a) indicate clearly a much better fitting with the pseudo-second order kinetic model.

In order to investigate the mechanism controlling the kinetics of the dye adsorption process, the intra-particle diffusion model proposed by Weber-Morris [42] was used.

Figure 6b shows the relationship qt versus t1/2, while Table 5b contains the parameters determined using the linear relationships (SI, Eq. SI 11). As can be seen in Fig. 6b, the multi-line relationships were obtained for both tested carbons, indicating the presence of three stages. The first stage is very fast and intense involving the dye adsorption on the active sites located on the adsorbent outer surface. The second stage is slower compared to the first one and is related to the intra-particle diffusion of methylene blue molecules in the pores of activated carbons. In turn, the third stage indicates clearly the state of equilibrium in which the intra-particle diffusion rate decreased significantly which might result from a very small concentration of the dye remaining in the solution [44], fewer accessible active sites [45] as well as the transfer of dye molecules from larger pores to the micropores [46]. These observations are confirmed by the data presented in Table 5b. The obtained results show that for each successive stage the values of the rate constants (kd) decrease: kd1 > kd2 > kd3. This effect is particularly visible in the case of the AC-23-CO2 sample where the kd values were: kd1 = 50.80 > kd2 = 29.16 > kd3 = 3.64, respectively. Moreover, there were obtained very high values of the R2 correlation coefficient (R2 > 0.95; Tab. 5b), which is characteristic of a linear fit for the second stage of the relationship qt = f(t1/2). Furthermore, the C values obtained in each case were different from zero. From above observations and conclusions, it was found that the intra-particle diffusion plays an important role in the process of methylene blue adsorption on the tested activated carbons, but this is not a step determining the speed of the entire process.

Adsorption isotherms

Figure 6c, d presents the adsorption isotherms. As can be seen for both materials, the adsorption capacities increase with the increasing concentration of methylene blue, while they achieve the plateau at high dye concentrations. The maximum sorption capacity calculated from the experimental data (SI, Eq. SI 12) is 200.30 mg g−1 for the AC-1.53-CO2 sample (Fig. 6d) and qe,exp = 237.67 mg g−1 for the AC-23-CO2 sample (Fig. 6d).

Compared to the AC-1.53-CO2 material, the sorption capacity of AC-23-CO2 carbon is greater because it has a much better developed structure and a larger pore volume (Table 2; Fig. 1). Moreover, this difference is assumed to be due to the different number of accessible active centers. AC-23-CO2 carbon is characterized by a higher impregnation ratio and thus probably contains more phosphorus atoms in its structure. According to Puziy et al. [47], heteroatoms give the carbons specific adsorption properties. The phosphorus-containing carbon materials have a large adsorption capacity toward metal ions and organic molecules. Additionally, heteroatoms such as phosphorus can also act as the additional adsorption centers capable of binding the dye molecules.

The determination of the appropriate type of adsorption isotherm is important to describe the manner of the adsorbed molecules arrangement and interactions with the adsorbents. In the paper, both the Langmuir and Freundlich bi-parameter models as well as the Radke–Prausnitz three-parameter model were applied (Fig. 6c, d). The nonlinear forms of the equations Eqs SI 13–SI 15 were used.

Table 6 shows the calculated values of the variables in the nonlinear forms of the isotherm models. In the case of the Langmuir isotherm model, very high values of the R2 correlation coefficient (R2 > 0.95) were obtained indicating that this model describes the adsorption process well. The qm,cal values are 219.00 mg g−1 (AC-1.53-CO2) and 253.20 mg g−1 (AC-23-CO2); therefore, they are very close to the experimentally obtained qe,exp (Table 6). However, the average absolute percentage deviation (%Dev) is relatively high (~ 9%). For the Freundlich model, the values of the R2 are slightly smaller compared to those for the Langmuir one. The KF coefficient, which is the affinity constant indicating the strength of the interactions between the adsorbate and the adsorbent, is high for both tested materials (AC-1.53-CO2–48.22 and AC-23-CO2–57.24). The n values are ~ 4.2 which can indicate a significant contribution of chemical adsorption. The higher the value of n, the greater the interactions between the dye molecules and carbon [48]. Unfortunately, the %Dev is ~ 20% which means that there is a very large difference between the values of qe,exp obtained experimentally and the predicted values of qe,pred. The models of the Langmuir and Freundlich isotherms do not explain the adsorption mechanism sufficiently.

Table 6 The calculated values of the variables in the nonlinear forms of the isotherm models used for the MB adsorption modeling

Thus, the Radke–Prausnitz isotherm model was applied (Fig. 6c, d). As for this isotherm model, very good fitting was obtained. The correlation coefficient was R2 = 98 for both tested materials. Moreover, the average absolute percentage deviation (%Dev) values were also small (AC-1.53-CO2–5.65% and AC-23-CO2–6.98%, Table 6). As a result, it was stated that this model is the most appropriate for explanation of the methylene blue adsorption mechanism. The sorption capacities of the obtained carbons were compared with those of the other materials (literature data) and are given in Table 7.

Table 7 The comparison of the sorption capacity of activated carbons in relation to MB obtained from organic waste materials impregnated with H3PO4

Conclusions

It was proved that the use of household waste materials is an alternative way to reduce the amount of wastes and reuse them for the micro-mesoporous effective carbon adsorbents production. The analysis of surface heterogeneity using the water thermodesorption under the Q-TG conditions shows a few stages of the process at the surface/water and water/air interfaces as a result of strong interactions of water molecules inside the micropores. The formation of various water clusters on the heterogeneous surface of ACs was found. The cryoporometry tests showed a decrease in the melting temperature of ice in the pores. Taking into account the non-freezing water layer, it was stated that ACs are characterized by a narrow pore size distribution and the value of Rdom about 1.1 nm. The trends of intensity changes on the dV/dR curves confirm the increase in the volume of micropores with the increasing the degree of impregnation. The materials show an amorphous nature. The activated carbons are characterized by a very good sorption capacity in relation to methylene blue (qe,exp = 200.3–237.67 mg g−1). The adsorption process proceeded according to the Radke–Prausnitz isotherm model.