Introduction

The development of chemical sensors is currently one of the most active areas of analytical research. Sensors are small devices that incorporate a recognition element with a signal transducer. Such devices can be used for direct measurement of the analyte in the sample matrix. There are a variety of combinations of recognition elements and signal transducers [1]. Recently, the utility of chemical sensors in industry has increased due to the rapid growth of environmental concern. For instance, nitrates, phosphates, and heavy metals constitute frequent pollutants of superficial and ground waters [2,3,4].

Electrochemical (voltammetric) detection with ion-selective electrodes (ISEs) can be considered as an advantageous analytical method. Consequently, considerable efforts have been devoted to the construction of ISEs that function on the basis of chemical recognition principle because of their ability to translate the chemistry of new substrate-binding systems into tools that can be applied in the selective recognition of various target species in the presence of potentially interfering analytes. The recognition elements which can be utilized in the selection of suitable carriers for construction of ISE should have a suitable size and a specific metal–ligand interaction [5]. The development of novel chemical sensors is closely related to the synthesis of new materials such as conjugated polymers and ionophores [6].

Anion receptors or ionophores are an important field of increasing research in supramolecular chemistry [7]. These molecules have recently attracted a lot of interest because they are making the detection of new analytes accessible, allowing comprehensive instrumental control over sensing characteristics and introducing new detection principles [8, 9]. Most prepared anion receptors based on the principle of hydrogen bonding, hydrophobic, electrostatic, and anion–π interactions are being developed for anion coordination [10,11,12,13,14,15]. The most utilized groups for the purpose of anion binding by hydrogen bonds are amide, thioamide, urea, thiourea, and amine functions [7, 16].

Environmentally, nitrate anions constitute a large proportion of current pollutants that cause «eutrophication» of rivers, leading to algal blooms and becoming a serious problem [17].

Considerable efforts have been devoted to the detection of NO3, especially in water because of its high toxicity and wide spread in the environment. Several nitrate-selective electrodes based on anion exchangers, such as quaternary ammonium salts [18,19,20], phosphonium salts [21, 22] and metallated organic ligands [23, 24] have been reported.

In this perspective, organic–inorganic salts based on melaminium cations could be considered as potential anion receptors. Furthermore, the protonated and non-protonated forms of this molecule represent good building blocks for constructing supramolecular architectures [25, 26], because of the presence of hydrogen-bonding sites and the formation of various protonated forms which can act as hydrogen-bonding acceptors [27]. Melamine has also been used to construct supramolecular architectures with phosphate [28], sulfate [29] and carboxylate anions [30].

The main aim of this work is to design a melamine derivative molecule in a highly selective membrane electrode with good response characteristics. In this sense, melaminium chloride pentachlorocuprate (H2mela)ClCuCl5 was synthesized. Fully characterized using FT-IR spectroscopy and single-crystal X-ray diffraction and explored as a potential ionophore for the construction of PVC-based polymeric membrane for selective determination of NO3 ions on glassy carbon electrode. Cyclic voltammetry (CV) and square wave voltammetry (SWV) techniques were used for the characterization of this sensor.

Results and discussion

Band assignments

The FT-IR spectrum of the melaminium chloride pentachlorocuprate is reported in Fig. 1. The different vibrational frequencies observed in the FT-IR spectrum of the title compound along with corresponding bands’ assignments are given in Table 1 and are based on a comparison of the IR spectra of other melaminium-containing compounds [31,32,33,34].

Fig. 1
figure 1

FT-IR spectrum of (H2mela)ClCuCl5

Table 1 FT-IR absorption bands assignment for the title compound

The 4000–3500 cm−1 region consists of two IR absorption bands characteristic of the –NH2 groups belonging to the melamine cation as well as the two –NH+ groups of the triazine ring [35,36,37]. Thus, the absorption band at 3350 cm−1 is assigned to the νas(N–H) asymmetric stretching, whereas the absorption observed at 3127 cm−1 results from the νs(N–H) symmetric stretching.

Moreover, two other characteristic N–H vibrations appear at 1694 cm−1 and 1664 cm−1 and could be attributed to the δ(N–H) bending modes (asymmetric and symmetric, respectively). Those broad bands are shifted to higher frequencies compared to other similar melamine derivatives (usually 1670 and 1600 cm−1, respectively) indicating that those groups are involved in the formation of hydrogen bonds [38] of different strengths. This agrees with the observations of H-bonds in the crystal structure of the title compound elucidated by means of the single-crystals’ X-ray diffraction results [27].

The vibrations region under 350 cm−1 can be assigned according to chlorocuprates(II)-containing compounds from the literature [39, 40]. Therefore, the band observed at 230 cm−1 originates from the copper–chlorine stretching mode associated with the Cu–Cl bonds [35, 41, 42].

The data obtained from FT-IR spectroscopy agree perfectly with the results of the X-ray diffraction analysis of the melamine salts based on a series of inorganic acids (melaminium sulfate [43], melaminium tetrachlorocuprate [44], etc.) and organic acids (melaminium tartrate [45], melaminium bis(hydrogen oxalate) [46], melamine pyromellitic acid [47], 4-hydroxybenzenesulfonate [48], etc.). These salts are characterized by the formation of deprotonated melaminium cations (the melamine is protonated at two nitrogen atoms of the triazine ring). In all cases, the melaminium cations and the organic/inorganic anions are joined together by means of hydrogen-bonding interactions.

Single-crystal X-ray diffraction

Experimental conditions used for the single-crystal data collection are reported in Table 2. The unit cell determination and data reduction were performed using the CrysAlis program [49]. A total of 8961 reflections were collected, of which 2855 were independent and 2044 reflections with I > 2σ(I). The structure was solved by direct methods using the program SIR2008 [50] and refined by full-matrix least-squares technique on F2 including all reflections with SHELXL-2013 program [51]. Both softwares were included within the WingX crystallographic software package [52]. The refinements converged at conventional R factor of 0.033 and wR of 7.8%. Maximum and minimum peaks in the final difference Fourier syntheses were 0.86 and − 0.61 e Å−3. Structural representation of the complex was drawn using MERCURY [53] (Fig. 2).

Table 2 Crystal and experimental data
Fig. 2
figure 2

Structural representation of melaminium chloride pentachlorocuprate used as the carrier in the PVC membrane

Optimization of experimental conditions

Effect of pH

Since an acidic environment is required for the detection of nitrate, it is important to study the relationship between the peak current and the pH value. As seen from Fig. 3, when the (H2mela)ClCuCl5–GC sensor was placed in electrolytes of different pH values (2, 3, 4, 5 and 6 were adjusted by 2 M H2SO4), the peak current varied with the pH but reached a maximum at pH 4. This may be attributed to the reduction of nitrates also requiring the presence of protons as they yield to the formation of NH2OH or NH3 in accordance with the following equation [54]:

$${\text{NO}}_{ 3}^{ - } + { 1}0{\text{H}}^{ + } + {\text{ 8e}}^{ - } { \leftrightharpoons } 3 {\text{H}}_{ 2} {\text{O }} + {\text{ NH}}_{ 4}^{ + } .$$
Fig. 3
figure 3

pH Optimization of (H2mela)ClCuCl5− GC sensor

As the above equation shows an acidic environment is required because hydrogen ions make the formation of NH2OH or NH3 possible. However, the onset of hydrogen evolution at low pH values may interfere with the nitrate electro-reduction as both occur at similar potentials, so it is very important to choose the suitable pH value [55, 56]. The result also shows that the acidity of the supporting electrolyte will affect the peak current and the peak shape too.

Effect of the plasticizer

It is well established that the plasticizer plays a vital role in the sensor performance as it is responsible for the ionophore solvation and distribution in the membrane matrix, thus controlling the detection limit [57] and affecting the selectivity and sensitivity [58].

The membrane sensor incorporated melaminium chloride pentachlorocuprate complex as an anion carrier as well as dioctyl sebacate (DOS) as a plasticizer. The membrane compositions and response characteristics of these sensors are summarized in Table 3.

Table 3 Limit of detection (LOD) and linear range values of the nitrate-GC sensor with different plasticizers

The influence of the plasticizer type on the characteristics of the (H2mela)ClCuCl5–GC sensor was investigated using three plasticizers with different polarities and lipophilicities including dibutyl phthalate (DBP, ɛr = 6.4, log PTLC = 4.45), DOS (ɛr = 3.9, log PTLC = 10.2) and o-nitrophenyl octyl ether (NPOE, ɛr = 23.9, log PTLC = 5.9).

The plasticizer DOS produced the maximum sensitivity for all the plasticizers. The (H2mela)ClCuCl5− GC sensor containing DOS showed better voltammetric responses, i.e., better sensitivity and linearity of the calibration plots. It seems that DOS as a low polarity compound among the plasticizers investigated provides more appropriate conditions for the incorporation of the nitrate ions into the membrane. The sensor-incorporated DOS as plasticizer had the lowest limit of detection (LOD). This is due to the fact that the membrane does not reach the minimum polarity required for improving the mobility and diffusion of active centers, which is impeded at the same time, as a result of high lipophilicity of the employed plasticizer [59].

It is to be noticed that the observed poor sensitivity for the electrode plasticized using NPOE results from the high dielectric constant which has a negative effect on the extraction of nitrate ions [60]. Consequently, we used DOS as the plasticizer in the following experiments.

Linear range and limit of detection of the sensor under the optimum condition

Under the optimum condition, the relationship between the peak current and the ion concentration was studied. The peak current decreases with the increase of the concentration of nitrate (Fig. 4). The reduction peak potential of nitrate was between 0.4 and 0.8 V and the peak potential does not vary with the variation of the concentration. The second peak at about 0.8 V corresponds to the reduction of nitrite [61, 62].

Fig. 4
figure 4

a Typical SWV curves of the (H2mela)ClCuCl5− GC sensor in response to varying concentrations of nitrates in sodium acetate/acetic acid buffer solution at pH 4; b the corresponding calibration plot of peak currents

Moreover, the calibration curve shows that a good linear correlation (R2 = 0.99) can be observed. The limit of detection calculated from the parameters obtained reached 1.2 × 10−10 M and the result exhibits, therefore, more simplicity and sensitivity of this method.

Comparison of linear range and LOD of (H2mela)ClCuCl5 GC sensor with literature values

The linear range and LOD of (H2mela)ClCuCl5 GC sensor were compared with the values reported in the literature (Table 4). As it can be seen, the sensor shows a lower limit of detection of about 1.2 × 10−10 M with a linear range of 1.2 × 10−10–1.2 × 10−7 M toward NO3. Our sensor is found to be better than the other sensors with regard to both the linearity range and the lower minimum detection limit value.

Table 4 Limit of detection (LOD) and linear range of the nitrate-GC sensor compared with the literature values

Study of interferences

For voltammetric determination of nitrate in water, there are always some common inorganic ions in water samples considered as possible interferences to NO3. The (H2mela)ClCuCl5 GC sensor response toward Cl, SO42−, and H2PO4 at pH 4 is studied using SWV method. NO3, Cl, SO42−, and H2PO4 were prepared in buffer sodium acetate/acetic acid over a wide concentration range of 0.11 × 10−12M − 0.12 × 10−5 M at pH 4 under stirring (Table 5). The calibration curves (Fig. 5) of the (H2mela)ClCuCl5 GC sensor for NO3, Cl, SO42−, and H2PO4 ions were obtained from voltammetric response.

Table 5 Analytical properties of (H2mela)ClCuCl5− GC sensor for interfering elements
Fig. 5
figure 5

Response of the (H2mela)ClCuCl5− GC sensor for NO3 over H2PO4 SO42− and Cl in sodium acetate/acetic acid buffer solution at pH 4

From these results we can deduce that the affinity to the (H2mela)[CuCl5]Cl was less for most of these interfering elements except in the case of NO3 which seems to have a higher affinity, because it showed the best linear range and the highest sensitivity. It is worth noted that the selectivity coefficient (log K) was calculated according to [67].

Analytical application

Various types of water samples were subjected to the detection of NO3 in water with the help of the newly fabricated sensor after addition of buffer (sodium acetate/acetic acid) and pH adjustment (pH 4) [68]. The city of Khenchela (East of Algeria) was selected for testing the new nitrate-selective sensor. Three real samples were selected with initial concentrations of nitrate ions determined by the spectrophotometric method. The limit of detection and the linear range of (H2mela)ClCuCl5 GC sensor in different water samples were studied and compared with its detection in aqueous solution. The results summarized in Table 6 clearly show that the stripping of NO3 in the real samples occurs effectively at the (H2mela)ClCuCl5 GC sensor.

Table 6 Limit of detection (LOD) and linear range of the (H2mela)2CuCl6− GC sensor of different real water samples collected from three different river sites in Khenchela

Conclusion

In this work, a new nitrate-selective electrode based on a melaminium chloride pentachlorocuprate(II) (H2mela)ClCuCl5(mela = melamine) as a novel ionophore was studied using cyclic voltammetry (CV) and square wave voltammetry (SWV). The optimal pH value was evaluated and the effect of plasticizer was performed using three different plasticizing solvent mediators DOS, DBP and NPOE.

On the basis of the results discussed in this work, the sensor incorporating DOS as plasticizer displayed a linear response for NO3 ions in a wide concentration range of 1.2 × 10−10 to 1.2 × 10−7 M. The sensor was found to perform satisfactorily in pH 4. The comparison of this sensor and the literature showed that the (H2mela)ClCuCl5 GC sensor is superior to the reported ones in terms of wider linear concentration range and lower detection limit. The response of our sensor toward NO3 ions is better than that of the required values of Cl, SO42−, and H2PO4. Therefore, melaminium chloride pentachlorocuprate complex as a novel ionophore can be considered as a carrier for the construction of a novel PVC-based membrane for nitrate detection in water.

Experimental

For membrane preparation, high-molecular weight polyvinyl chloride (PVC), dibutyl phthalate (DBP), dioctyl sebacate (DOS), o-nitrophenyl octyl ether (o-NPOE), and tetrahydrofuran (THF) were used as received from Fluka. Melamine from Sigma-Aldrich was used to synthesize the ionophore as described below. The test solution was prepared by dissolving the nitrate salts in sodium acetate/acetic acid buffer solution.

Synthesis of the ionophore (H2mela)[CuCl5]Cl

Following a new procedure different from the one previously reported [27], the title compound was synthesized by preparing separately a hot ethanol–water solution (1:1, 10 cm3, 60 °C) of melamine (1.5 mmol) and an aqueous solution (10 cm3) of CuCl2·2H2O (3 mmol). The metallic salt solution was then added dropwise to the hot melamine solution in a 2:1 molar ratio and stirred for 30 min until an almost clear solution was obtained. After cooling the resulting mixture to room temperature, it was filtered out to remove any amount of insoluble material and then kept to evaporate at room temperature to finally lead to the growth of brown bloc-like crystals after several weeks. The crystals of the title compound were then collected and dried in air.

FT-IR measurements

The FT-IR spectrum of the title compound was recorded in the range of 200–4000 cm−1, using KBr pellet with a PerkinElmer FT-IR spectrophotometer at room temperature.

Single-crystal X-ray diffraction

The X-ray single-crystal structure of the title compound was determined by mounting a dark brown block-like crystal on an Oxford Diffraction Xcalibur CCD diffractometer with a fine-focus sealed tube graphite-monochromated Mo Kα radiation (λ = 0.71073 Å) using φ and ω scans at 170 K in the range of 3.6 ≤ θ ≤ 31.8°.

Preparation of the membrane

The PVC-based membrane was prepared by dissolving 33 mg of PVC, 67 mg of the plasticizer (DOS), and 4 mg of melaminium chloride pentachlorocuprate (H2mela)[CuCl5]Cl in 3 cm3 THF. For the optimization of the plasticizer, we used two others in the membrane DBP (dibutyl phthalate) and NPOE (o-nitrophenyl octyl ether) with 67 mg for each one.

Preparation of the electrode

Prior to the determination, glassy carbon electrode (GCE) was manually polished with alumina powder (Al2O3, size 0.05 μm) until a mirror surface was obtained. After that the electrode was left in acetone for 5 min and in Piranha (mixture of 2/3 sulfuric acid and 1/3 oxygenated water H2O2) for 2 min, to further eliminate microparticles absorbed on the electrode surface. 15 mm3 of the prepared membrane was deposited on the surface of the glassy carbon electrode and then left dried in open air for 12 h. Cyclic voltammetry was used to characterize the surface of the GCE using a potential from − 0.8 to 0.8 V in potassium ferricyanide/ferrocyanide solution.

Electrochemical measurements

Electrochemical measurements were carried out using an EC-lab SP 300 with a conventional three electrodes system; modified glassy electrode, platinum wire and saturated calomel electrode were used as the working, auxiliary and reference electrodes, respectively and inside a Faraday cage. Electrochemical measurements were performed at ambient temperature (25 ± 1 °C) using a 7110 pH meter (Inolab) (2 M) sulfuric acid for pH control and with an Orion Ag/AgCl double-junction electrode. Square wave voltammetric measurements were run from 0.3 to 1 V, scan rate 100 mV s−1, using an electrochemical cell with 30 cm3 containing a three electrode system.

Analytical application

In terms of sampling, water samples were collected from three selected river areas in Khenchela, namely, Bouhmama, Ain Mimoun and Hammam Essalihine. For comparative purposes, KNO3 standards at concentrations of 1, 2, 3, 4, and 5 mg/dm3 were prepared and the absorbance at these concentrations was taken. A plot of average absorbance versus concentration in mg/dm3 is shown as the standard calibration curve in Fig. 5. This standard graph was used to estimate the nitrate concentration of samples at any given absorbance.