1 Introduction

Electrochemical ion-selective sensors have been widely used as in situ analyzers in medicine, environmental monitoring, and various areas of industry for many decades [1]. During this long period of time, countless efforts have been made to improve the operating parameters (i.e., limit of detection, selectivity), stability, portability, robustness, cost requirements, and environmental impact of these typically ion-selective membrane-based devices [2]. Over time, state-of-the-art technological advances, like electrohydrodynamic jet [3] or 3D printing [4,5,6,7,8,9] technology, have also emerged in the field of analytical chemistry. 3D printing offers tailored fabrication of geometrically diverse devices with practically unlimited designability, automation, and versatility of printable materials for any scientific problems. Examples include various applications in lab-on-a-chip advancement, additive manufacturing of sensing equipment, fabrication of microfluidic devices, selector membranes, nanoparticles, and electrodes as well [4,5,6,7,8,9].

Research on 3D printing of electrochemical sensing platforms is still in its early stage. The exponentially increased research interest of this field can be obviously seen from a search in the Web of Science® database entering 3D*, print*, and electrochem* as keywords. Although the first papers were published in the early 2010s, the total number of the reported works reached 1400 by January 2021 with more than 9300 citations during the previous year. Electrochemistry has been benefited from this technology mainly by customizing sensing approaches, especially electrode design [10,11,12,13,14]. Initially, the 3D-printed sensors used metals, which made them expensive and necessitated numbers of complicated post-treatments. Additionally, the limited range of their electrochemical potential also reduced the applicability [12, 15,16,17]. The appearance of carbon-based composite filaments helped to overcome these drawbacks allowing an unprecedently fast and cheap manufacturing of electrodes [18, 19]. The thermoplastic matrix of printable materials is typically made of acrylonitrile butadiene styrene (ABS) or polylactic acid (PLA) and the sensors work based on amperometry or voltammetry [15]. In all cases, the principle of operation makes it essential for the applied materials to be conductive. Hence, these types of electrodes still show the disadvantages of strongly shape-dependent electrochemical behavior [20] and require additional post-treatment (e.g., chemical treatment with DMF, saponification with NaOH, or various electrochemical, biological or physical modifications) to provide electrically active surfaces by removing the charge transfer resistance polymer component from the surface of the composite electrode [15, 21]. Although much research today is focused on overcoming the disadvantages resulting from the intensively used concept of conductive material-based 3D-printed electrochemical sensors [18, 22,23,24,25,26,27], several conditions—i.e., graphene impurities and required surface modification—still remain unsolved [28, 29]. In summary, apart from the limitations of previously reported applications, 3D printing shows a great potential to open up novel perspectives in electrochemical sensing, such as in potentiometry.

Conventional, plasticized bulk ion-selective electrochemical membranes used for potentiometry are typically made of PVC, to which the plasticizer is added in an amount of approximately 2 mass equivalents related to the polymer [30]. They also contain lipophilic ionic sites in an amount of 1–2 wt%, which act as an ion exchanger to prevent ions with a charge opposite to the preferred analyte from entering the membrane and influencing the response signal. However, these ionic additives are mostly organic borate salts of weak stability and their leakage or decomposition is among the main causes of losing selectivity [30] and make conventional membranes of less advantages compared to covalently assembled sensor materials [31]. The ionophore is usually added to the other membrane components and then the mixture is dissolved in THF and poured into a mold in which the solvent evaporates to form a homogeneous polymer layer, from which the individual membranes are cut out and incorporated into an electrode body [32]. Therefore, it is not surprising that the major limitations of the widespread use of conventional potentiometric bulk membranes come from their cumbersome, small-scale, mechanical manufacturing technique. 3D printing provides a promising alternative to solve these problems.

Since the proposed 3D printing technology does not allow the application of the conventional PVC-based matrix of the ion-selective potentiometric membranes, a novel concept had to be applied. Among 3D-printable thermoplastic polymers, PLA is the most commonly used and commercially available one for creating structures of high diversity for industrial, medical, as well as for electrochemical applications. Moreover, it gains increasing popularity due to its favorable properties (i.e., biocompatibility, modifiability) [21]. From an environmental point of view, PLA is also considered to be one of the most environmentally friendly polymers due to its biodegradability and sustainability [33, 34] and thus it was chosen as the matrix material for the proposed new type of membranes.

Herein, we report the development of a biodegradable PLA-based electrode membrane containing only environmentally friendly matrix components to replace the generally applied plasticized PVC backbone and to provide a greener alternative to conventional sensing membranes. Moreover, the reported electrochemical membranes do not contain any ionic additives. This simplified membrane composition can prevent the leakage of the charged agents into the mainly investigated aqueous samples. This reduced composition is applicable as PLA exhibits a weak negative charge on the polymer surface due to lactic acid contaminants resulting from its inevitable partial degradation [35]. According to the present studies this anionic content is able to act as an effective, immobilized ion-exchanger responsible for the permselectivity of the membranes toward cations. Subsequently, the experimental production of the novel-type ion-selective membranes was also performed, including the extrusion of the neutral ionophore-containing filament as well as the 3D printing of the electrode membranes with a detailed optimization of process parameters. Furthermore, as a proof of concept, the potentiometric determination of Hg2+ in water was also carried out. These studies showed unexpected advantageous properties over the application of conventional PVC-based bulk ion-selective electrode membranes. We hope that the present study will be a milestone in the practical application of cation-selective potentiometric analyzers possessing the ability of decentralized fabrication and providing a generally usable method for series production of bulk electrochemical membranes.

2 Experimental

2.1 Chemicals and apparatus

Starting materials were purchased from Sigma-Aldrich Corporation (St. Louis, MS, USA, owned by Merck) and used without further purification, unless otherwise noted. Ingeo™ Biopolymer 3100HP-type polylactic acid pellets (NatureWorks LLC, Minnetonka, MN, USA) were plasticized by polyethylene glycol derivatives with different average molecular masses, like PEG-400, PEG-1500, or PEG-monolaurate (M-PEG, Mn = 400) and used for extrusion. Solvents were dried and purified according to well-established methods [36]. A lipophilic acridono-18-crown-6 ether (Fig. 1) was synthesized [37], embedded in bulk polymer membranes, and used as a neutral ionophore.

Fig. 1
figure 1

Lipophilic acridono-crown ether neutral ionophore

For potentiometric measurements, a Philips IS-561 (Glasblaserei Moller, Zurich, Switzerland) electrode body was used with an Ag/AgCl/3 mol L−1 KCl//1 mol L−1 KCl double-junction reference electrode (Metrohm, Herisau, Switzerland) in a Radelkis OP-208/1 precision pH meter (Radelkis Ltd., Budapest, Hungary) in all cases. 10−3 mol L−1 mercury(II) acetate was used as the inner filling solution during calibration, while in the case of selectivity measurements, strongly discriminated 10−3 mol L−1 lithium(I) acetate was applied. Furthermore, membranes that had not been in contact with primary ions before were used for estimating selectivity constants to reduce the possibility of bias [38]. For pH measurements, a Mettler Toledo SevenEasy pH meter (Mettler Toledo, Columbus, Ohio, USA) fitted with a Mettler Toledo Inlab micro electrode was used. The various pH values were adjusted with concentrated nitric acid. The accuracy of pH determinations was within ± 0.1 unit. Each weight was determined by a Mettler Toledo XS105 microanalytical balance (Mettler Toledo, Columbus, OH, USA) to the nearest 0.1 mg. The pictures of the membranes were made using a Nikon SE-type clinical and laboratory optical microscope (Nikon Instruments Inc., New York, USA). A Jeol JSM 6380LA scanning electron microscope (SEM) was used in secondary electron imaging mode (SEI) for examining the membrane structure (Jeol Ltd., Tokyo, Japan) after a surface modification of the cross-sectional samples with a Jeol 1200 sputter coater (Jeol Ltd., Tokyo, Japan) using high-quality gold in argon plasma. The operating parameters were the following: accelerating voltage 10 kV, working distance 12 mm, and spot size 40 nm.

2.2 Filament extrusion and 3D printing of the ion-selective membranes

Extrusion of plasticized 3D printing-compatible polymer filament containing the ionophore was carried out using a Labtech LTE 26–44 twin-screw extruder (Labtech Engineering Co., Ltd., Samutprakarn, Thailand) with a screw diameter of 26 mm, volumetric dosing system, shared barrel and screws co-rotating and PLC control with a touch screen. Unplasticized pellets were dried at 80 °C for 24 h in a drying oven (Despatch LBB2-27-1CE, Despatch Industries, Glenview, IL, USA) as a pre-treatment and plasticized with the corresponding PEG derivative via the extrusion process.

The previously extruded filament was used for 3D printing of the membranes. Membrane design was first planned using CATIA 3D modeling software (Dassault Systèmes, Vélizy-Villacoublay, France). Fused deposition modeling was employed to fabricate the potentiometrically active structures with the diversely plasticized filaments containing the neutral ionophore. The 3D printing was performed with a Creality CR-10 S (Creality, Shenzhen, China) 3D printer controlled by PrusaSlicer software (Prusa Research, Prague, Czech Republic). A removable spring steel PEI 310 × 310-mm (suitable for printing about 300 membranes) print bed (ENERGETIC 3D Store, Shenzhen, China) was used as a build plate. Optimization of the main printing parameters—i.e., printing temperature of the individual layers, printing speed, the feed rate of the filament, and temperature of the print bed—had to be carried out for stable operation. The effects of these critical factors are discussed in Sect. 3. The membranes required neither post-treatment nor any kind of electrochemical activation before use.

2.3 Electrochemical measurements and evaluation of the results

All of the potentiometric measurements were carried out at ambient temperature (25 ± 1 °C). Illustration [39] of the potentiometric cell used for the present electrochemical studies is shown in Fig. 2. The ion-selective membrane was mechanically fixed in the plastic socket of the electrode body.

Fig. 2
figure 2

Schematic representation of the applied potentiometric device

The electromotive force (EMF) of the cell was measured by varying the concentration of the stirred test solutions in the range from 10−9 to 10−1 mol L−1 by serial dilution with double-distilled water. During calibration, the EMF values were recorded both with increasing and decreasing concentrations. Each point of the diagrams is from four independent measurements. The deviation (measuring the same sample at least four times) was below ± 0.5 mV and the reproducibility (measuring four different samples of the same concentration after regeneration) was below ± 2.0 mV in every case, except for the measurements which were out of the working pH range. Between two different sample solutions, the electrode pair was washed with distilled water and then wiped off. The response time of the membrane sensors—i.e., the time in which stable and constant potentials were recorded—was determined by measuring the potentials at different times. The potential values were recorded in correspondence with the determined response time after immersing the electrode into a stirred test solution of 50 mL. Potentiometric selectivity coefficients (\(\text{log}{K}_{i,j}^{pot}\)) are estimated by the separate solution method based on the Nikolsky–Eisenman equation from the EMF data measured for metal (Li+, Na+, K+, Ag+, Mg2+, Cd2+, Zn2+, Co2+, Ca2+, Cu2+, Pb2+, Hg2+) acetates according to Eq. 1:

$$\text{log}{K}_{i,j}^{pot}=\frac{{EMF}_{j} - {EMF}_{i}}{{S}_{i}}+\log\frac{{a}_{i}}{{{a}_{j}}^{{z}_{i}/{z}_{j}}},$$
(1)

where ai and aj are the ion activities of the preferred and the competing ion, respectively, which induce EMFi and EMFj potentiometric responses, Si is the slope of the calibration curve as a function of ai determined on its linear working range, while zi and zj represent the charges of the corresponding ions. Activity coefficients were calculated using the Debye–Hückel equation. The lower detection limit (LOD) was determined according to the standard definition based on a linear fitting on the near linear range of the calibration curve [30]. OriginPro 8.6 (OriginLab Corporation, Northampton, Massachusetts, USA) software was used to evaluate the results.

3 Results and discussion

3.1 Experimental production of novel ion-selective membranes

For 3D printing-based fabrication of electrochemical membranes, a 3D printer-compatible thermoplastic polymer-based filament containing the ionophore needs first to be prepared. It is a basic requirement for the matrix material of the membrane to be in plastic state to ensure sufficient permeability of the components of the sample solution [30]. Hence, the glass transition temperature (Tg) has to be around the application temperature (usually room temperature) or optimally below that. As PLA is a sustainable and biodegradable polymer and one of the most commonly used materials for 3D printing, it was chosen as membrane matrix. Due to the permeability requirements, plasticizers also had to be added. As environmentally friendly considerations were also an important aspect of the development, biocompatible PEG derivatives, specifically PEGs with different average molecular masses of 400 or 1500 g mol−1 or their monolaurate ester, were used as plasticizers in an amount of 10 or 20 wt% related to the PLA. Moreover, the addition of even a 10 wt% of the proposed PEG derivatives reduces the Tg of the PLA to less than 40 °C [40] and also provides a proper permeability for the most frequently investigated aqueous samples. (The use of additional ionic membrane components proved to be unnecessary due to the carboxylate content of the PLA, which provides a negative charge for the membrane [35].) In summary, the membranes were made of 99.7 wt% green materials, the remaining 0.3 wt% is the ionophore. The properties of the ionophores may differ individually; however, it is important to note that the applied technology requires the thermal stability of the ionophore (up to 190 °C) and its adequate lipophilicity for effective physical immobilization. Our experience shows (data not reported) that the use of less than 0.3 wt% ionophore results in a significant inhomogeneity of the membranes and a decrease in sensitivity during detection. On the other hand, the increasing amount of the ionophore does not significantly improve the operating parameters, thus 0.3 wt% ionophore was uniformly applied in the membranes. The instrumentation for filament extrusion is schematically illustrated in Fig. 3.

Fig. 3
figure 3

Instrumentation for filament production

In the case of the applied equipment, the melted material flows from the extruder (A in Fig. 3) onto an air-cooled conveyor belt (B in Fig. 3) with a length of 2.5 m. Optionally, a vacuum calibration water bath can also be applied to gain high-precision filament line. Similarly, a haul off unit is also advisable for advanced production, but these additional devices were not used during the experimental production. After passing through several filament guides, the polymer line is transferred to the wind-up station (C in Fig. 3). Until use, it is advisable to store the filament under airtight conditions due to its humidity-absorbent capability.

Each production batch started from 0.4 kg as a total amount of raw materials. Initially, the ionophore should be added homogeneously to the PLA granules used for filament extrusion. Since the ionophores make up only a small proportion of the membrane components, it is advisable to distribute them with the granules in the form of a solution. A 0.1 mol L−1 solution of the ionophore in ethyl acetate was added to the PLA granules (20 mL/batch). Ethyl acetate dissolves PLA well and thus it fixes the ionophore in the matrix material by etching the surface of the granules. After the granules are uniformly wetted, the solvent was evaporated at room temperature (4 h) to obtain the polymer granules containing the ionophores. As PLA is able to bind a large amount of water during storage, which significantly affects its processability, the granules were placed in a drying oven at 80 °C for 24 h. After removing the moisture, the plasticizer was added to the granules and the mixture was poured into the hopper of the preheated extruder. The initiation state is indicated by an increase in pressure, while the end phase of the process is indicated by a decrease in it. In the intermediate state, precise optimization of the raw material feed rate (controlled by the rotation speed of a screw in the throat), the extrusion rate (controlled by the rotation speed of the twin screw in the thermostated barrel) in connection with the fiber removal speed (controlled by the speed of the conveyor belt), and the temperatures of the extrusion zones in connection with the pressure are required to achieve suitable filament for 3D printing. The main operating parameters of the extrusion process, which had to be optimized, are illustrated in Fig. 4.

Fig. 4
figure 4

Main process parameters influencing the filament production

The greatest challenge during extrusion is caused by the drastically changed rheological properties of PLA due to the plasticizer content, especially the extremely reduced viscosity of the melted polymer. This also strongly limited the plasticization of the polymer and thus it was not possible to produce a filament with a plasticizer content above 20 wt%. The process proved to be extremely sensitive to all of the five main operating parameters, which were examined (shown in Fig. 4). Fiber was only obtained when setting the optimized parameters. Even a 2% deviation from each optimized parameter value made fiber formation impossible. The values obtained as a result of the parameter optimization are shown in Table 1.

Table 1 Optimized operating parameters for the filament extrusion process as a function of the applied plasticization

Although the optimal parameter values may slightly vary from device to device, data reported here can be useful starting points for any production. Under optimized conditions, fibers of 1.6 ± 0.5 mm diameter were successfully produced with all fiber compositions. A shaping die of 1.75 mm diameter was used and thus the diameter reduction was caused by the reduced viscosity of the plasticized melted polymer fibers compared to pure PLA. (Although filaments with a diameter of 1.75 mm are most commonly used for 3D printers, the smaller fiber diameter is not a problem, because the fiber feed of the printer can be adjusted precisely.)

Different parts of the obtained ionophore-containing filament were used as raw material for 3D printing. There was no difference in the operating properties of the additively manufactured membranes made from the parts of the filament, which indicates that a filament of a sufficiently homogeneous composition was produced. Two-layer membranes of 200 μm thickness with a diameter of 8.0 mm were designed, which were compatible with the electrode body used in the electrochemical cell. Due to mechanical strength requirements, the lower limit of the allowable membrane thickness was 150 μm, while above 300 μm, a significantly increased response time of the membranes was observed, because of their reduced permeability. The membrane design and the printer unit are shown in Fig. 5.

Fig. 5
figure 5

The applied membrane design for 3D printing, the printer, and the fabricated membranes

The first step in printing was the construction of the inner perimeter as a border of the membrane (1 in Fig. 5), followed by the outer contour (2 in Fig. 5). After that the inner area of the membrane was filled with a parallel fiber direction (3 in Fig. 5). The primer layer must adhere properly to the build plate, thus a relatively high printing temperature of 175 °C was applied in the cases of polymers containing 20 wt% plasticizer. The next step was to continue creating the outer membrane contours by building a second membrane layer (4th and 5th steps in Fig. 5). Thereafter, the filling of the inner area was repeated, similarly to the first layer, with a layer thickness of 100 μm, but it was rotated by 90° in-plane (6 in Fig. 5). To form the second layer, a lower printing temperature of 170 °C was proved to be ideal in the cases of filaments containing 20 wt% plasticizer. The temperature of the build plate was optimally set to 55 °C, which provided proper solidification rate and adhesion of the membranes during the manufacturing. In terms of print speed (the moving speed of the nozzle), the highest value was 20 mm s−1, which did not reduce the quality of the membranes. The printer was able to produce three membranes per minute at this speed; however, this performance strongly depends on the device. For filaments containing only 10 wt% plasticizer, higher temperatures had to be applied during printing, such as 200 °C for the first layer and 185 °C for the second one. The other device settings were the same as noted earlier.

A comparison of the microscopic images of the membranes (see Fig. 6) shows that membranes manufactured using PEG-1500 were the most regular, followed by the M-PEG-containing membranes and finally the PEG-400-containing ones, and among them the latter composition made processing difficult due to unfavorable rheological properties, thereby resulting in more irregular membranes.

Fig. 6
figure 6

3D-printed membranes containing various plasticizers in an amount of 20 wt% (A PEG-1500, B M-PEG, C PEG-400) and their diverse appearances influenced by different rheological properties in the manufacturing process

Fortunately, these differences were not manifested in the electrochemical experiments. After optimization, 50–50 membranes from each investigated composition were prepared. Calculated from these statistical samples, the membrane thicknesses were within 200 ± 20 μm. These deviations did not affect the electrochemical performance of the membranes. The actual cross-sections between the gridlines on the rough surface can be much thinner as can be seen on SEM records in Fig. 7.

Fig. 7
figure 7

Cross-sections of 3D-printed electrochemical membranes containing various plasticizers in an amount of 20 wt% (A PEG-1500, B M-PEG, C PEG-400) recorded by SEM

This property is due to the vertical manufacturing technology, which also produces an increased specific surface area compared to the conventional bulk membranes.

In summary, from the ionophore-containing plasticized PLA filaments produced by extrusion, a wasteless and environmentally friendly experimental series production of electrochemical membranes was realized in a cost-effective and time-saving manner using a commercially available and basic 3D printing device. After a thorough optimization of the whole manufacturing process, production starting from the earlier mentioned batch (400 g plasticized PLA + 1.2 g ionophore) resulted in about 170-m filament line, which would be suitable for producing about 34,000 membranes. The production of the novel cation-selective membranes can be performed by a fully automated process. The ionophore is the only cost determinant among the components, as the total cost for production is at most 10 USD/10,000 membranes without counting the price of the ionophore. The membranes and the filament should be stored under airtight conditions until use. The membranes have to be soaked in distilled water for 5 min before use to ensure adequate wetting.

3.2 Proof-of-concept study on determination of Hg2+ in water

In order to verify the applicability of the new membrane fabrication technology and to demonstrate the efficiency of the novel membrane composition, 3D-printed membranes were incorporated into the same electrochemical cell, which had previously been successfully used for selective potentiometric detection of Pb2+ in water even under competitive conditions [37]. The ionophore used in the membrane was the same as in the case of the previously reported dioctyl sebacate (DOS)-plasticized, PVC-based traditional membranes containing potassium tetrakis(4-chlorophenyl)borate lipophilic ionic additive. Thus, potentiometric characterization of the novel electrode membranes was carried out and their characteristics were compared with those of the conventional ones.

First the electrodes containing differently plasticized 3D-printed membranes were calibrated with Pb2+ acetate aqueous solutions of different concentrations and then studies on selectivity were carried out. Surprisingly, the novel electrodes showed a preference for Hg2+over Pb2+, despite the ionophore previously found to be Pb2+ selective both in solution phase and inside PVC-based membranes. However, Hg2+ was the only ion, which caused interference in the case of the previously reported conventional Pb2+-selective electrode. Presumably, the different polarities of the medium and the reduced flexibility due to immobilization caused a change in the conformation of the ionophore, which altered its preference in molecular recognition. Based on this finding, Hg2+ was indicated as the primary ion and the calibration of the electrodes containing the novel membranes was consequently carried out with aqueous Hg2+ solutions, as shown in Fig. 8.

Fig. 8
figure 8

Calibration curve of the conventional membrane electrode with Pb2+ (A) and the calibration curves of the novel ones (membranes containing B 20% PEG-400, C 20% PEG-1500, D 20% M-PEG) with aqueous Hg2+ solutions (deviations were within ± 0.5 mV in each case)

To the linear range of the calibration curve, a linear regression line (solid red line in Fig. 8) was fitted. The coefficient of determination (R2) was higher than 0.99 in all cases. The ordinate value of the intersection of the regression line and the constant potential (horizontal dashed red line in Fig. 8) appoints the LOD. The results of electrochemical characterization are summarized in Table 2.

Table 2 Potentiometric characteristics of the investigated electrodes containing different ion-selective membranes

All the electrochemical properties of the novel membranes with 10 wt% plasticizer content were practically identical to those of the more plasticized version with the same plasticizer, the only difference was their significantly longer response time (about 5 min), and thus their use is not recommended due to this drawback. All of the electrodes gave a near-Nernstian response to the preferred ions with a linear working range in concentrations from 10−4 to 10−2 mol L−1 for conventional electrode membranes and from 10−6 to 10−2 mol L−1 for the novel ones. More than an order of magnitude decrease was also obtained in LOD due to the altered matrix material and manufacturing technology. The deviation was below ± 0.5 mV and the reproducibility was below ± 2.0 mV in each case. PLA-based membranes showed longer response times, but this is not significant in terms of the analytical performance.

The selectivity of the electrodes for various metal ions was assessed by recording the EMF response in the separate solutions of the preferred and interfering ions. Potentiometric selectivity was estimated using differences in the observed EMF values and the determined slope of the calibration curve. The potentiometric selectivity coefficients (\(\text{log} {K}_{\text{ij}}^{\text{pot}}\)) reflect the ratio of the stability constants of the ionophore toward the preferred ion over various competing ions. It is important to note that without the possibility for exactly adjusting the amount of ion exchanger inside the membrane, the determined \(\text{log} {K}_{\text{ij}}^{\text{pot}}\) values could only give a rough estimate for the thermodynamic constants revealing the real interferences. Detailed discussion can be found in Sect. 3.3.

The potential response of the electrode was measured using 10−3 mol L−1 solutions of metal ions. The potentiometric selectivity coefficients for different interfering ions were standardized on Pb2+ in the case of the previously reported conventional electrode and on Hg2+ in the cases of the novel ones based on the observed highest preferences. The results are shown in Table 3.

Table 3 Comparison of estimated potentiometric selectivity of the novel electrode membranes and their previously reported analogue as a reference

It can be seen from the data that the novel membranes show advanced electrochemical properties and also an improved selectivity toward the majority of the investigated secondary ions compared to their conventional analogues. (In most of the cases, orders of magnitude improvements were obtained in estimated potentiometric selectivity constants.) The novel membranes showed the highest selectivity toward Hg2+. Unsurprisingly, Pb2+ was the only one among the investigated competing ions, which significantly interfered with Hg2+ determination. Although plasticizer PEG-1500 generally led to the best selectivity, LOD using M-PEG plasticizer proved to be the lowest. There was no significant difference in other operating parameters of membranes containing PLA matrix.

In contrast, studies on regenerability showed notable differences depending on the plasticizer. Since the water solubility of plasticizers PEG-400, PEG-1500, and M-PEG decreases in this order, this feature is also reflected in the regenerability. Although the same membrane was not used for potentiometric characterization (calibration, selectivity, etc.) to avoid disturbing effects, series of measurements involving Hg2+-determination were carried out in 30 individual 10−4 mol L−1 aqueous samples to gain information on regenerability. No change was observed in working parameters during these studies, even after applying the same membranes for up to 30 measurements. An almost identical electrode response could be observed as in the case of the first sample with a deviation of less than ± 1.0 mV in the cases of membranes with less water-soluble plasticizers. In the cases of membranes plasticized with PEG-400, a reduced stability of the potentiometric response was observed. When these membranes were immersed for more than 10 min into the aqueous samples, the electrochemical signal remained constant for about 4–5 min; however, after that time a gradient increasing drift was observed in response indicating that leaching of the hydrophile plasticizer probably takes place. Therefore, these membranes are single-use ones. For the other membrane compositions, this phenomenon was not observed during the measurements.

First of all, the M-PEG-plasticized membrane is considered to be the most stable one for monitoring of water samples and is also the most suggested one for other practical applications. In the future, it may be worth incorporating even more hydrophobic plasticizers into the membranes, such as the distearate derivative of PEG. The membranes could be stored under airtight conditions at 5 °C over a period of three months without any significant change in the calibration parameters.

3.3 Limitations

In contrast to conventional ion-selective bulk electrode membranes, the addition of lipophilic ionic components to provide permselectivity of the membranes was unnecessary since the partial degradation of PLA resulted in a sufficient number of free carboxylates inside the matrix for providing the ion-exchange function, which is essential for operation. This phenomenon can naturally be exploited only in the case of cation-selective membranes. Although the negative resulting charge of PLA is well established [35], studies were extended to support this concept. Membranes containing previously extruded PLA and potassium tetrakis(4-chlorophenyl)borate (generally used lipophilic anion exchanger) as well as the conventionally manufactured ones (evaporation of volatile solvent from a dispersion of the membrane cocktail containing all the components) without ionic additives were also prepared. The potentiometric calibration curves for these membranes can be seen in Fig. 9.

Fig. 9
figure 9

The potentiometric calibration curves for conventionally manufactured membranes containing previously extruded PLA plasticized with 20 wt% M-PEG and two equivalents (regarding the ionophore) of lipophilic anion exchanger (A) or those containing untreated PLA plasticized with 20 wt% M-PEG without any ionic additives (B)

Results show that the calibration curve for conventionally manufactured membranes containing lipophilic anion exchanger (curve b) in part A of Fig. 9 is almost the same as that for the new 3D-printed membranes without ionic additives (curve a) in part A of Fig. 9. On the other hand, in the case of conventionally manufactured membranes without any ionic additive (curve b) in part B of Fig. 9, no Nernstian response was observed. The slope of the calibration curve significantly decreased and the deviation of the measurements increased, which all support the concept that, unless providing the essential ion-exchange for permselectivity, ionophores are unable to perform their function. These observations show that the negative resulting charge of the untreated PLA is not sufficient to perform the ion-exchange function of the membranes. The powerful shear forces and the intensive heat treatment during the extrusion result in an increased number of broken ester bonds, which makes the membrane surface sufficiently charged.

Consistently, in acidic conditions (pH < 6.0, see curves (c) and (d) in part A of Fig. 9, the quality of the potentiometric response deteriorated similarly. The carboxylate groups of the membrane matrix are expected to be protonated causing a decreased resulting charge strength, which makes the cations unable to enter the membrane unless breaking the rule of electroneutrality. It is also important to note that PLA hydrolyzes in acidic conditions. In the cases of measurements at pH ≤ 4.0, irreversible signal change and degradation of the corresponding membranes were observed. Therefore, the membranes should only be used in neutral medium (pH 6.0–7.0). It allows the majority of environmental samples to be analyzed without buffering.

In the case of conventional potentiometric ion-selective membranes, the optimal amount of the ion exchanger can exactly be determined in order to achieve the best possible selectivity toward the primary ion. In contrast, this is not possible in the case of the proposed, new 3D-printed PLA membranes, as the ratio of carboxylates responsible for permselectivity cannot be precisely adjusted. We can only strive to induce a minimum sufficient membrane charge for practical operation and to approach the ideal Nernstian response and thermodynamic selectivity values. In addition to the weak pH tolerance (pH = 6.0–7.0), the cation-targeted selectivity, and the relatively low chemical stability, it is clearly a drawback of the new type of membranes.

4 Conclusion

We have demonstrated a proof of concept for the series production and use of novel plasticized PLA-based ion-selective membranes for potentiometric sensing as greener alternatives to the conventional bulk electrode membranes. The proposed technology for production of cation-selective potentiometric membranes proved its effectiveness as a cheap, fast, precise, and automated manufacturing option with minimized waste. Extensive optimization of membrane composition and process parameters was carried out. The manufacturing technology resulted in the best quality in the case of PEG-1500-containing membranes. Depending on the ratio of the plasticizer, the value of 20 wt% proved to be the most favorable, of which the PEG-400-plasticized membranes were single-use ones, while others showed appropriate stability for practical applications. The new electrode, obtained by incorporating the novel 3D-printed membranes, was electrochemically characterized and compared to its conventional analogue using the generally applied DOS-plasticized PVC matrix and borate salts as lipophilic ionic additives. The novel membranes showed unexpected improvements in the majority of electrochemical properties, which involve a two-order magnitude wider linear working range, a more than one-order magnitude lower LOD, and an improved selectivity over Mg2+, Zn2+, Co2+, Ca2+, Cu2+, and Cd2+. Considering both electrochemical and stability parameters, 20 wt% M-PEG-containing two-layer membranes with 200 μm thickness proved to be the most advantageous ones. The main limitations of the novel membranes are the relatively low chemical stability and that the carboxylate content of the matrix (responsible for permselectivity) is not exactly adjustable, which only allows to approach the theoretical potentiometric response. The present results are believed to highly encourage the implementation of 3D printing technology in the preparation of cation-selective bulk membranes. Furthermore, these innovations could enable decentralized manufacturing and wide practical applications of cation-selective bulk membrane-based potentiometric sensors.