Introduction

4-Nitroaniline (4-NA) is an important chemical intermediate that is widely used in dyes, pesticides, pharmaceutical products, explosives, and rubber. In industrial production, 4-NA can be released into the environment in the form of industrial waste. Given that 4-NA has good solubility in water, it can easily penetrate and accumulate in soil or groundwater. 4-NA is highly toxic, mutagenic, and carcinogenic. It is not only highly toxic to aquatic organisms but also harmful to human health because it can lead to respiratory arrest, methemoglobinemia, liver injury, skin eczema, diarrhea, and anemia [1, 2]. 4-NA can cause long-term damage to the environment due to its poor biodegradability, high chemical stability, and persistence. Consequently, environmental protection agencies in many countries consider it a priority pollutant [3]. Therefore, establishing rapid, sensitive, selective methods for determining 4-NA is important.

At present, the main detection methods of 4-NA include spectrophotometry [4, 5], surface-enhanced Raman spectroscopy [6, 7], electrochemical method [8,9,10], fluorescence method [11, 12], high-performance liquid chromatography [13, 14], luminescence method [15, 16], and electrophoresis [17]. Chromatographic method (such as high-performance liquid chromatography) has the advantages of good separation effect and high sensitivity. And now, some aromatic amine samples (such as those in textiles or food contact materials) are still detected by chromatography-based methods [18,19,20,21]. However, due to the complex matrix of the sample or the low concentration of the analyte, some samples need to go through complicated pretreatment process before detection, which is complicated in operation and high in cost. Fluorescence method is an effective approach for the rapid detection of 4-NA because of its low detection limit, high sensitivity, rapidity, and use of simple instruments. However, this method has shortcomings, such as unsatisfactory selectivity for target molecules, which leads to the interference of similar substances during determination.

Molecular imprinting is a new molecular recognition technology [22]. Its principle is to imitate the natural antigen–antibody reaction mechanism. The target molecule is used as the template molecule, and the functional monomer and cross-linking agent are polymerized under the action of the initiator. After polymerization, the target molecule is fixed in the polymer. After the target molecule is removed, the hole of the target molecule is left on the polymer material. The structure of the hole complements the size and shape of the target molecule. Hence, the hole has highly specific recognition and adsorption properties for target molecules.

Fluorescence assay has a low detection limit, high sensitivity, rapidity, and simple instrumentation. By combining it with molecular imprinting technology, a reliable, fast, highly specific, and sensitive analytical method may be developed for the accurate and efficient detection of 4-NA in water. The assay can overcome the shortcomings of traditional methods, such as low sensitivity, poor selectivity, complicated operation, and time-consuming sample pretreatment.

Recently, molecularly imprinted fluorescent polymers have made some progress in improving the selectivity of target molecules [23]. However, there are still some problems to be solved, such as the single type of phosphors and the poor water solubility of polymers.

Ionic liquid is a kind of liquid ionic compound at or near room temperature, in which there are only anions and cations and no neutral molecules [24]. Therefore, various ionic liquids can be synthesized through the design of anion and anion. The organic fluorescent functional group can be connected to the anion or cation structure of the alkenyl ionic liquid to prepare the alkenyl fluorescent ionic liquid, and then through the polymerization reaction, the fluorescent poly(ionic liquid) can be obtained. Because of the ionic liquid structure in the polymer, the water solubility of the polymer can be increased. It is beneficial to detect the target molecules in water samples.

In this study, we combined high-sensitivity fluorescence method with high-selectivity molecular imprinting technology and synthesized a novel molecular imprinting poly(ionic liquid) fluorescent sensor by using vinyl fluorescent ionic liquid as a monomer. We developed a new detection technology for environmental water samples and applied it to recognize and determine 4-NA in industrial wastewater and environmental water.

Experimental section

Materials

4-Bromomethyl-7-methoxycoumarin and 1-vinylimidazole were obtained from Tokyo Chemical Industry Co., Ltd. (Shanghai, China). Ethylene glycol dimethacrylate (EGDMA), 4-NA, 3-NA, and 2-NA were supplied by Sigma-Aldrich (Shanghai, China). 2,2′-Azo(bisisobutyronitrile) (AIBN), p-chloroaniline, diphenylamine, 4,4′-diaminobiphenyl, p-anisidine, m-toluidine, 4-nitrobenzyl bromide, and nitrobenzene were obtained from Aladdin (Shanghai, China). In addition, several common chemicals, including methanol, ethanol, trichloromethane, sodium dihydrogen phosphate, and sodium phosphate dibasic, were purchased from Sinopharm Chemical Reagent Co., Ltd. (Shanghai, China). Different pH phosphate buffers were prepared by mixing different volumes of 0.01 M NaH2PO4 and 0.01 M Na2HPO4. All chemicals and solvents were of pure analytical grade. Water was purified through a Milli-Q purification system and applied to the entire experimental process.

Apparatus

A Varian 400-MR nuclear magnetic resonance instrument (Varian, USA) was used to record 1HNMR and 13CNMR spectra. Fourier transform infrared (FT-IR) measurements were performed with a Nicolet Nexus-470 FT-IR apparatus. An F-7000 fluorescence spectrofluorometer (Hitachi, Japan) was utilized to obtain the fluorescence spectra. The fluorescence intensity was detected at excitation and emission wavelengths of 329 and 395 nm, respectively. N2 adsorption–desorption isotherms were measured with Micro Tristar 2020 after all of the samples were degassed at 100 °C for 24 h. Brunauer–Emmett–Teller and Barrett–Joyner–Halenda methods were used to calculate the specific surface area and pore size distribution, respectively. The surface morphologies of all samples were analyzed with a Hitachi S-4800 scanning electron microscope (Hitachi, Japan). The samples of industrial wastewater were detected by Agilent 1260 high-performance liquid chromatography (HPLC).

Synthesis of ionic liquid functional monomer

A mixture of 4-bromomethyl-7-methoxycoumarin (2 mmol), 1-vinylimidazole (4 mmol), and trichloromethane (15 mL) was stirred in a 100-mL, round-bottom flask at 80 °C for 12 h. After the reaction was completed, the solvent trichloromethane was evaporated in a vacuum. The residue was washed with anhydrous ether. Then, the expected product, 3-((7-methoxy-2-oxo-2H-chromen-4-yl)methyl)-1-vinyl-1H-imidazol-3-ium bromide, was collected and further dried in a vacuum oven overnight (see Electronic Supplementary Material (ESM) Scheme S1).

Preparation of molecularly imprinted poly(ionic liquid) and non-imprinted poly(ionic liquid)

The reaction was carried out in a methanol solution using 4-NA as the template molecule, 3-((7-methoxy-2-oxo-2H-chromen-4-yl)methyl)-1-vinyl-1H-imidazol-3-ium bromide as the functional monomer, and EGDMA and AIBN as the cross-linker and initiator, respectively. The specific experimental process of synthesizing the molecularly imprinted poly(ionic liquid) (MIPIL) was as follows: 4-NA (0.1 mmol) and 3-((7-methoxy-2-oxo-2H-chromen-4-yl)methyl)-1-vinyl-1H-imidazol-3-ium bromide (0.4 mmol) were thoroughly dispersed in a methanol solution (40 mL) for 15 min in a 100-mL, round-bottom flask. Then, EGDMA (2 mmol) and AIBN (50 mg) were separately added to the reaction solution. After purging with nitrogen for 30 min, the round-bottom flask was sealed, and the mixture in it was stirred at 60 °C for 24 h. After the reaction was completed, polymerization products were obtained and collected via filtration. The desired products were completely washed with ethanol to remove 4-NA and dried at 80 °C in a vacuum oven overnight. Non-imprinted poly(ionic liquid) (NIPIL) was synthesized under the same conditions in the absence of 4-NA.

Fluorescence measurement

To obtain the best test conditions, we used 4-NA as the detection target, and its level was 1 μM. The levels of MIPIL ranging from 10 to 50 mg/L and the pH values of the solution from 4 to 11 (prepared by phosphate buffer solution) were optimized. Real-time detection of fluorescence intensity was performed every 10 s to obtain the stabilization time and determine the optimum detection time.

Determination of 4-NA in real samples

Industrial wastewater was supplied by a chemical factory in Jiangsu Province (China). Actual environmental water samples were obtained from Beijing–Hangzhou Grand Canal in Jiaxing City (Jiaxing, China). The suspended particles in the water samples were removed with a 0.45-μm filter, and then the actual water samples were directly used for detection.

Results and discussion

Characterization of ionic liquid functional monomer

In order to further determine the molecular structure of the prepared fluorescent functional monomer (3-((7-methoxy-2-oxo-2H-chromen-4-yl)methyl)-1-vinyl-1H-imidazol-3-ium bromide), we characterized the compound by NMR, and the results are shown in Fig. S1 (see ESM). Its NMR data were as follows:

  • 1HNMR (400 MHz, CD3OD): δ = 9.52 (s, 1H), 8.15 (s, 1H), 7.90 (s, 1H), 7.72 (d, J = 9.2 Hz, 1H), 7.31 (q, J = 8.0 Hz, 1H), 7.00 (dd, J = 2.4, 8.8 Hz, 1H), 6.94 (d, J = 2.4 Hz, 1H), 5.99 (dd, J = 2.4, 15.6 Hz, 1H), 5.95 (s, 1H), 5.84 (s, 2H), 5.50 (dd, J = 2.4, 8.8 Hz, 1H), and 3.90 (s, 3H)

  • 13CNMR (100 MHz, CD3OD): δ = 163.7, 160.7, 155.5, 148.5, 128.4, 124.8, 123.8, 123.8, 119.9, 112.7, 110.4, 110.1, 109.2, 100.9, 55.2, and 49.3

The above data showed that the functional monomers had been synthesized successfully.

Preparation of MIPIL and NIPIL and the detection principle of 4-NA

The synthetic process of MIPIL and NIPIL was as follows: First, the fluorescent ionic liquid functional monomer (ILFM) was synthesized by introducing an electron-rich alkenyl imidazole group into 4-bromomethyl-7-methoxycoumarin to enhance the fluorescence intensity of the parent compound significantly, and second, polymerization was performed in the presence of AIBN as the initiator. During polymerization, 4-NA molecules were captured via ILFM and EGDMA through electrostatic attraction and hydrogen bonding, respectively. Fluorescence quenching of ILFM occurred due to the electron-deficient structure of 4-NA and its π–π stacking with ILFM. Lastly, 4-NA molecules were removed with an ethanol solution after polymerization, and the fluorescence of MIPIL was restored (Scheme 1).

Scheme 1
scheme 1

Schematic of 4-NA determination

Characterization of MIPIL and NIPIL

The structural properties of ILFM, MIPIL, and NIPIL were further analyzed using FT-IR spectra. Figure S2 (see ESM) showed that the characteristic peaks at 1732, 1637, and 1158 cm−1 were attributed to the stretching of C=O and C–O of EGDMA and ILFM, respectively. The typical peaks at 1560 and 1179 cm−1 represented the imidazolium cationic group vibrations of C=N, C=C, and C–N. The FT-IR spectra of NIPIL were almost similar to those of MIPIL. The analysis of the composition and structure of MIPIL or NIPIL via FT-IR spectra confirmed the successful polymerization of the ILFM and EGDMA cross-linker.

The scanning electron microscopy (SEM) image showed that MIPIL had an obvious structure with a clear outline, whereas the image of NIPIL was vague (Fig. 1). Moreover, MIPIL was more uniform than NIPIL in terms of size and shape. Figure 2a and c show that the nitrogen adsorption–desorption isotherms of MIPIL and NIPIL had the characteristics of type I and IV composite isotherms according to IUPAC classification [25]. In the low-pressure region (P/P0 < 0.1), the adsorption amount of nitrogen increased rapidly, indicating that there were some micropores on the surfaces of both polymers. However, in the pressure zone (0.1 < P/P0 < 0.8), the adsorption capacity of nitrogen increased slowly, and the rising speed of MIPIL was higher than that of NIPIL. After reaching the high-pressure region (P/P0 > 0.8), the adsorption capacity of nitrogen increased rapidly, indicating that there were not only a certain amount of mesopores, but also a small number of macropores on the surface of the two polymers [26]. Both isotherms had H3-type hysteresis loops, indicating that both polymers had lamellar structures, with slit-like pore structures [27]. It was consistent with their SEM images (Fig. 1). The pore size distribution of MIPIL was mainly at 1.48 and 2.52 nm, while that of NIPIL was mainly at 1.18, 1.36, and 1.72 nm. The surface area of MIPIL and NIPIL was 20.14 and 18.60 m2/g, respectively, and their average pore sizes were 12.36 and 11.60 nm, respectively (Fig. 2). The test result showed that MIPIL had a larger surface area and pore size than NIPIL. It indicated that MIPIL had some molecularly imprinted holes on its surface.

Fig. 1
figure 1

SEM images of MIPIL (a) and NIPIL (b)

Fig. 2
figure 2

N2 adsorption–desorption isotherm and pore width distribution of MIPIL (a, b) and NIPIL (c, d)

Optimization of 4-NA determination

To obtain the best detection effect, we optimized the detection conditions of MIPIL for detecting 4-NA. The adding concentration of MIPIL ranging from 10 to 50 mg/L was explored to investigate its effect on 4-NA detection. The results showed that the maximum fluorescence quenching efficiency was obtained when the MIPIL concentration was 30 mg/L (see ESM Fig. S3A). Therefore, the optimized level of 30 mg/L was selected as the best detection amount of MIPIL.

On the basis of this condition, real-time fluorescence monitoring of the mixture was performed to obtain the stability of the kinetic binding of MIPIL toward the 4-NA template molecules. As shown in Fig. S3C (see ESM), the fluorescence quenching equilibrium can be quickly achieved within 0.5 min at room temperature when the concentrations of 4-NA were 100 nM and 1 μM. In addition, the fluorescent signal could remain relatively stable for a long time. This phenomenon fully demonstrates that the 4-NA template molecules could rapidly match the binding sites in the space cavity to achieve the effect of fluorescence quenching. We conclude that the MIPIL fluorescence sensor can detect 4-NA rapidly and efficiently. The effect of the pH value ranging from 4 to 11 (prepared by phosphate buffer solution) on detection performance was also studied. The pH value of the solution had no significant effect on the detection of 4-NA (see ESM Fig. S3B). Given that the pH value of the water used in the experiment was 7, we set the best pH value of the detection system to 7.

Under these optimal conditions, different levels of 4-NA were tested using the MIPIL sensor. As shown in Fig. 3a, the fluorescence intensity of the sensor declined as the level of 4-NA increased. Figure 3b indicates that a good linear relationship exists between F0/F and the 4-NA level in the concentration range of 2.67–10,000 nM. The linear equation is F0/F = 1.041 + 0.321C4-NA, and the correlation coefficient is 0.992. The limit of detection (LOD) was 0.8 nM (0.11 μg/L) (S/N = 3), and the limit of quantification (LOQ) was 0.37 μg/L (2.67 nM) (S/N = 10). Table 1 indicates that the assay has higher sensitivity for 4-NA compared with the majority of previously reported methods.

Fig. 3
figure 3

Fluorescence spectra of MIPIL with the addition of different levels of 4-NA (a) and fluorescence quenching intensity of MIPIL in the presence of 4-NA with different levels (2.67–10,000 nM) (b). λex = 329 nm and λem = 395 nm

Table 1 Comparison of the assay with other methods of detecting 4-NA

Selectivity of NIPIL and MIPIL sensors

The selective recognition capability of NIPIL and MIPIL fluorescence sensors was demonstrated by comparing it with that of 4-NA and its analog. Its analogs include (1) p-chloroaniline, (2) diphenylamine, (3) 4,4′-diaminobiphenyl, (4) p-anisidine, (5) m-toluidine, (6) 4-nitrobenzyl bromide, (7) nitrobenzene, (8) 2-NA, and (9) 3-NA. As shown in Fig. 4, the quenching effect of 4-NA and its analogs on the NIPIL sensor was similar, but 4-NA exerted a significantly higher quenching effect on the MIPIL sensor than on its analogs. Although 2-NA and 3-NA had a similar structure as the template molecule 4-NA, the degree of fluorescence quenching on the MIPIL sensor was less than that of 4-NA. The results showed that the MIPIL sensor had a good selectivity for 4-NA, which was much higher than that of the NIPIL sensor.

Fig. 4
figure 4

(a, b) Fluorescence quenching efficiency of NIPIL and MIPIL sensors with the addition of different aromatic compounds (1 μM)

Measurements of real water and industrial wastewater samples

The constructed MIPIL fluorescence sensor was utilized for 4-NA detection in the actual water samples, which were obtained from Beijing–Hangzhou Grand Canal in Jiaxing City. The suspended impurities in the real water samples were removed using a 0.45-μm filter before detection, and then the actual water samples were directly used for detection. During the measurement of the actual water samples, we found that the water samples did not respond to the MIPIL fluorescence sensor. Therefore, we used the method of adding different concentrations of 4-NA to the real water samples for recovery investigation. Four different concentrations (2.67, 30, 50, and 100 nM) were selected for spike recovery, and the results are shown in Table 2. The recoveries were 97.7–103.2%. These values reveal the high accuracy of the proposed assay.

Table 2 Detection and recovery of 4-NA in actual water samples (n = 6)

In order to further evaluate the practicability and accuracy of the proposed MIPIL fluorescent sensor, we used the sensor to detect the content of 4-NA in industrial wastewater and spiked industrial wastewater, and compared it with the method of HPLC. At first, we tested the standard water samples containing 4-NA by Agilent 1260 HPLC and established HPLC method. The linear equation was Y = 3.136C4-NA − 15.396, in which Y was the peak area and the correlation coefficient was 0.995. It can be seen from Fig. 5a and b that there is a good linear relationship between peak area and concentration in the concentration range of 10–1000 μM. Next, the proposed MIPIL fluorescent sensor and HPLC method were used to detect the content of 4-NA in industrial wastewater samples, and their detection results were compared. It can be seen from Fig. 5c and d that the detection results of the two methods are consistent. It means that the proposed method may be applied to the rapid and accurate detection of 4-NA in industrial wastewater.

Fig. 5
figure 5

(a) Detection of different concentrations of 4-NA using the method of HPLC. (b) The standard curve of the method of HPLC. (c) Determination of 4-NA in industrial wastewater and spiked industrial wastewater using the method of HPLC. (d) Comparison of detection results of 4-NA in industrial wastewater and spiked industrial wastewater by the method of HPLC and MIPIL fluorescent sensor

Conclusions

In short, 4-bromomethyl-7-methoxycoumarin as a fluorophore was applied to the preparation of a new ILFM, and a novel MIPIL fluorescence sensor was successfully developed for the detection of 4-NA. The sensor has the advantages of low cost, easy preparation, simple operation, rapid detection, and high specificity and sensitivity to 4-NA. Given that the sensor has good test performance, it has a potential application value in the immediate detection of 4-NA in industrial wastewater and environmental water.