Introduction

The chemistry of trivalent lanthanides is gaining attention due to their unique luminescent and magnetic characteristics [1,2,3,4]. Lanthanoid complexes exhibit luminescence in the near-UV region (Ce3+ and Gd3+), near-infrared (Nd3+, Er3+, and Yb3+) range, and also exhibit high luminescence in the visible range (Eu3+ and Tb3+). Undesirably, the trivalent lanthanides show low luminescence intensity with a low molar absorptivity(ε) (< 10 L mol−1 cm−1) because of the Laporte forbidden f-f transitions [5, 6]. However, by coordinating lanthanide ions to a chromophoric unit that acts as an antenna and consequently transfers its energy effectively to the metal ion can avoid these limitations [7, 8]. Based on such antenna effect, the lanthanide complexes demonstrating sharp and strong luminescence have been developed with many organic ligands such as β-diketone [9] carboxylate, [10] calixarenes, cryptands including 8-hydroxyquinolinate (8HQ) [11]. Moreover, these lanthanide frameworks with organic chromophores have aroused the interest of researchers for their interaction with foreign molecules like anions and the associated color changes. Lanthanide complexes are oxophilic and carry a positive charge, interacting with anions through strong electrostatic forces [12]. The 8-hydroxyquinoline and its derivatives are studied extensively due to their crucial role in various biological actions that include antibacterial, antioxidizing, anticancer, and antifungal properties [13,14,15], and most importantly, cancer diagnosis and therapy [16, 17]. 8HQ-based Ln(III) chelates are also effective for precise detection and selective sensing of anions of biological importance [18]. The design and development of chemosensors for selective detection of anions have received attention in supramolecular chemistry because of their critical importance in a wide range of environmental, biological, and chemical processes [19,20,21]. The binding of sensors with the anions leads to changes in one or more features of the system, such as colorimetric changes [22,23,24], fluorimetric changes [25,26,27], or changes in electrochemical properties [28,29,30]. These anion probes are capable of recognizing anions with different sensitivities, and the probe–anion interactions can be easily visualized via naked-eye colorimetric or luminescent responses [31]. Among various ions, phosphates in their inorganic (H2PO4, HPO42−, PO43− and PPi) and organic (ATP, ADP, and AMP) forms are essential in biology due to their defined role in signal transduction, storage of energy, and gene development processes [32,33,34]. However, excessive levels of phosphate in the human body lead to several disorders, such as hyperphosphatemia, soft tissue calcification, cardiovascular problems, renal failure, and hence higher rates of mortality and morbidity [35,36,37,38,39]. Cyanide is another toxic anion that is lethal for living beings. The global output of cyanide is quite large because of its wide industrial applications in manufacturing paper, plastics, textiles, dyes, electroplated metals, and, most importantly, the metallurgy of gold and silver. While cyanide poisoning is uncommon, it can occur as a result of inhaling smoke from industrial fires or using industrial wastes-polluted water, as well as working in the mining sectors [40,41,42]. Cyanide’s extreme toxicity stems from its ability to impede oxygen intake by iron-containing enzymes such as cytochrome oxidase and hemoglobin by interacting with the iron present in them and thereby obstructing oxygen delivery and cellular respiration, resulting in death due to cerebral hypoxia [43, 44]. Some lanthanide-based luminous sensors have been reported for their selective detection of anions such as bicarbonate, chloride, and nitrates [45,46,47,48,49], and a few trivalent Eu and Tb probes for detecting phosphate ions [50,51,52,53]. However, to our knowledge, no documentation on lanthanide chemosensors for the simultaneous detection of phosphate and cyanide ions via naked-eye responses has been reported.

In the above view, two new trivalent lanthanide complexes (Eu and Tb) comprising a hydroxyquinoline-based ligand (E)-2-((8-hydroxyquinolin-2-yl)methylene)hydrazine-1-carbothioamide (hqtsc) have been developed and characterized that can simultaneously detect dihydrogen-phosphate (H2PO4) and cyanide (CN) ions colorimetrically. In-depth studies on the structure, bonding, solution thermodynamics, and electronic properties of the metal chelates have been done through experimental and DFT approaches. Further, the sensing mechanism of the probes towards H2PO4 and CN, which go along with the spectral and DFT evidence, have been proposed.

Result and discussion

Synthesis

The synthesis routes for preparation of the ligand hqtsc (1) and complexes Eu(hqtsc)2Cl (2) and Tb(hqtsc)2Cl (3) are shown in Scheme 1.

Scheme 1
scheme 1

Synthetic scheme of hqtsc (1) and its complexes with Eu3+ (2) and Tb3+ (3)

The ligand hqtsc was synthesized by condensation of 8-hydroxyquinoline-2-carbaldehyde with thiosemicarbazide in an ethanol medium by following the literature [54]. The complexes, Eu(hqtsc)2Cl (2) and Tb(hqtsc)2Cl (3), were synthesized by reacting the chloride salts with the ligand hqtsc in methanol. The complexes are stable at room temperature, soluble in DMSO and DMF solvents, and characterized by advanced techniques like IR, 1H NMR, 13C NMR, and mass spectroscopy, confirming the molecular formulations. The characterization details of 1, 2, and 3 are provided in supplementary information (Figs. S1S10).

Characterization

IR spectra

The FT-IR spectrum of the ligand (hqtsc) and its lanthanide complexes have well-defined vibrational frequencies in the IR region. The characteristic peak of azomethine group ν(–N = CH–) at 1539 cm−1 confirms the successful condensation of 8-hydroxyquinoline-2-carbaldehyde with thiosemicarbazide. Also, the appearance of peaks at 3248 cm−1 and 3387 cm−1 due to the symmetric and asymmetric stretch of the terminal –NH2 group, along with a broad band at 3600 cm−1 due to the presence of hydroxide group (–OH) supports the formation of ligand hqtsc. The thiosemicarbazone hqtsc, in principle, can exhibit thiol-thione tautomerism; the peak at 1327 cm−1 is due to ν(C=S) along with secondary N-H stretch present at 3153 cm−1 corresponds to the presence of thione form. Further, a weak -SH stretching frequency at 2800 cm−1 and C–S stretching band at ~ 939 cm−1 corresponding to thiol tautomer suggest that the ligand exists in both forms at room temperature. On complexing with the lanthanides, the stretching vibration of the imine linkage underwent a slight shifting from 1539 cm−1 to 1535 cm−1 in both complexes, indicating the imine-N’s participation in complex formation. The band at ~ 3600 cm−1 disappeared due to deprotonation of -OH group upon complexation with the metal ions. Further, the shifting of νC=S from 1327 cm−1 (ligand) to 1273 and 1271 cm−1, along with the shifting of νN–H from 1353 cm−1 to 3161 cm−1 and 3163 cm−1 in complexes 2 and 3, respectively were noticed clearly. However, no peak due to νC–S of the ligand was observed in Eu3+ and Tb3+complexes, indicating the existence of the thione tautomer form. The sharp peaks due to νM–O vibrations observed at 439 cm−1 and 441 cm−1, and νM–N vibrations at 495 and 497 cm−1 correspond to 2 and 3, respectively. Due to the instrument limitations, the stretching vibrations νM–S and νM–Cl appearing in the region of 100–300 cm−1 could not be produced. The IR spectra of the Tb-complex showed a broad band between 3500 and 3200 cm−1, suggesting the presence of lattice water in complex 3, which was missing in complex 2. The thermogravimetric analysis (TGA) also proved the existence of lattice water in the Tb-complex.

1H and 13C NMR Spectra

The 1H and 13C NMR spectra of the ligand hqtsc and complexes were recorded in the deuterated DMSO-D6 medium. Nine protons and eleven carbon atoms with chemically different environments were observed; the chemical shift corresponding to each signal has been given in the experimental section. Due to the paramagnetism of Eu3+ and Tb3+ ions, the broadening in the signals, along with a considerable downfield shift, was observed in the spectra. The broadening in the protons signals near paramagnetic lanthanides depends on (a) dipolar interactions and (b) Curie-spin relaxation; the line width is also governed by the strength of the magnetic field and the inverse sixth power of corresponding proton-lanthanide distance [55]. In the case of the Eu(III) complex, the electron relaxation time was less, so the complex was expected to give sharp signals as compared to Tb(III) complex, where the relaxation time is high due to spin-spin splitting therefore, more signal broadening is expected [55]. The 1H NMR spectrum of complex 2 shows sharp signals (Fig. S6), where the –OH proton peak is absent, confirming the ligand–metal coordination. Further, the peak for the secondary –NH– proton of thiosemicarbazide is seen with more downfield shifting (at 11.02 ppm), which means the ligand coordinates with lanthanides through the ‘S’ atom and not with secondary –NH– group. The NMR spectrum of complex 3 was broad and did not show high-resolution signals (Fig. S7).

Mass Spectra

High-resolution mass spectrum (HR-MS) recorded for the ligand hqtsc showed an exact mass peak at 247.0664, which matches with the L+H calculated value 247.0655, corresponding to the exact mass of the ligand. The spectrum of Eu(hqtsc)2Cl showed a peak at 643.0215, complementary to [Eu(hqtsc)2]+ (calculated mass = 643.0190) after fragmentation of Cl atom. Further, the peak corresponding to Eu(hqtsc)+1 appeared at 398.9447 after the dissociation of one of the ligands. In the mass spectrum of Tb(hqtsc)2Cl, the signal at 649.0266 can be assigned to [Tb(hqtsc)2]+ formulation and the peak at 404.952 corresponds to Tb(hqtsc)+1 for. The molecular ion peaks in the mass spectra agreed with their calculated mass. The presence of one Cl atom in each complex was confirmed by quantitative estimation of Cl as AgCl by use of AgNO3 reagent [56].

Thermogravimetric Analysis

Thermogravimetric (TG) analysis is one of the most effective techniques to check the presence of water molecules, and it can also differentiate the non-coordinated water molecules (80–150 °C) from the coordinated ones (150–220 °C) [57]. The TGA was performed under a nitrogen atmosphere from temperature 40 °C to 500 °C with a heating rate of 20°C per minute. Eu3+complex was found thermally stable up to 230 °C, indicating the absence of any lattice or coordinated water, including solvent molecules. Degradation of 2 was seen from 230 to 327 °C with 18.10% equivalent weight loss. The second weight loss starts from 330 °C to 500 °C and above (Fig. S11). On the other hand, TG curves of the Tb(III) complex (Fig. S12) reveal an initial mass loss of 1.42% occurred in the range of 110–160 °C, corresponding to 0.5 mol of water molecules present in the lattice. The second loss happened from 220 to 470 °C, corroborating a 20.66% weight loss (Fig. S12).

Electronic absorption spectra

The UV-visible spectra of hqtsc and its complexes, recorded in 10−5 M DMF solution, are shown in Fig. 1. The ligand showed a band at 346 nm (ε = 32951 M−1 cm−1) with a shoulder at 314 nm (ε = 25407 M−1 cm−1), assigned as π → π* transitions. Upon coordination with lanthanides, the bands at 314 and 346 nm showed an increase in the molar absorbance along with two new absorption bands in the visible range at 418 nm (ε = 12,372 M−1 cm−1 for 2 and 16,907 M−1 cm−1 for 3) and 490 nm (ε = 4184 M−1 cm−1 for 2 and 6054 M−1 cm−1 for 3). Details of the electronic transitions obtained from the DFT calculations are described in “Theoretical electronic spectra of europium and terbium complexes” section.

Fig. 1
figure 1

Electronic absorbance spectra of hqtsc and its trivalent lanthanide (Eu and Tb) complexes in 1 × 10−5 M DMF

Solution thermodynamics

Protonation studies of ligand

The protonation behavior of the ligand was investigated in solution. The potentiometric titrations of the ligand hqtsc ( concentration 10−3 M) were performed in a highly aqueous solution (9:1, water: DMSO) by adding an excess of standard HCl (0.1 M) and titrating it against a standard KOH (0.1 M) solution. The potentiometric data were analyzed by Hyperquad program, which yielded the best match for three protonation constants with log K1 = 11.89, log K2 = 9.55, and log K3 = 3.36 corresponding to the phenolic -OH, pyridine N, and secondary amine (–NH) group. Four species were formed, namely LH3+, LH2, LH, and L2− (Fig. 2), across the pH range 3–10. The values of protonation constants are consistent well with the literature [58]. The protonation behavior of hqtsc was also checked through spectrophotometric studies where 30 absorption spectra were taken between 250 and 600 nm in the pH range 2–10. The spectra established the equilibrium between the protonated and deprotonated species. The protonation constants obtained from Hyspec are log K1 = 11.76, log K2 = 9.52, and log K3 = 3.30, which agree with potentiometric results. The spectrophotometric titration curves are shown in Fig. S13.

Fig. 2
figure 2

Species distribution curve for the ligand hqtsc at various pH

Complex formation studies

Potentiometric titrations of the ligand hqtsc were performed in the presence of Eu3+ and Tb3+ ions, maintaining the metal: ligand molar ratio as 1:2 for studying the metal complex formation equilibria. The titrations were done in highly aqueous media (9:1; H2O: DMSO) having ionic strength μ = 0.1MKCl at 25 ± 1 °C. The potentiometric curves of metal-ligand systems show deviation from the ligand curve above pH 3.2, suggesting the complex formation (Fig. S14). Different sets of models were considered to get the best-fit data through the global refining program Hyperquad. Complete agreement of the experimental and theoretical curves was obtained when ML2H2, ML2H1, ML2, ML2H−1, and ML2H−2 species were included in the model for both europium and terbium systems. The values of overall formation constants (log β) obtained from the calculations are summarized in Table 1, along with the equilibrium reactions.

Table 1 The values of Log β obtained through potentiometric and spectrophotometric titrations along with the equilibrium reactions involved

UV-visible spectroscopy was also used to study the interactions of Eu3+ and Tb3+ with hqtsc under identical conditions similar to the potentiometric study. The absorption spectra were taken in the pH range from 2 to 11 for both the metal systems in a 1:2 metal-to-ligand ratio and 0.5 × 10−3 M concentration. The ligand shows two bands at 303 nm and 334 nm due to π → π* transitions in acidic pH 3.0 to 6.8. Changes in the ligand-based transitions and observation of new bands with increasing pH indicate the formation of complexes (Fig. 3a, b). In the acidic pH range from 3 to 6, the bands at 303 and 334 nm showed a decrease in intensity. At the neutral and basic pH, these two bands (303 nm and 334 nm) merged into a single broad band with λmax at 340 nm, and a new band at 390 nm appeared due to the formation of EuL2H−1 species. Similarly, in the case of the Tb3+ system, there was a decrease in the intensity of the ligand band at 303 nm and 334 nm, along with the observation of a new band at 398 nm due to the formation of TbL2H−1. Above neutral pH, two new absorption bands at ~ 340 and 390 nm appeared due to the existence of TbL2H−2. The best-fit model on the global refining program Hyspec gave results similar to those obtained from potentiometric data. The outcomes are listed in Table 1. Figure 3c and d shows the spectrum of individual species calculated from the Hyspec program.

Fig. 3
figure 3

Experimental electronic absorption spectra of hqtsc at various pH in the presence of a Eu3+ and b Tb3+; Absorption spectra of the species obtained from Hyspec for (c) Eu3+ and (d) Tb3+

The species distribution curves for the complex formation obtained from the potentiometric titrations are given in Figure 4. It can be seen that in acidic pH, species EuL2H2 and EuL2H form for europium. Initially, the EuL2H2 exists in significant quantity, i.e., 98% around pH 2.5, and EuL2H exists with a maximum of 45% at pH 4. With the increase in pH, deprotonation of the secondary –NH group of thiosemicarbazone moiety will lead to simultaneous coordination with the metal ion, leading to the formation of EuL2 species. The EuL2 species formed around pH ~ 3 and existed at a maximum concentration of 82% at pH ~ 5.0. The hydrolysis species formation started above pH ~ 5. EuL2H−1 presents a maximum of 38% at pH 6.5, whereas EuL2H−2 exists in 100% at pH > 9. In the case of terbium, TbL2H2 and TbL2H formed with 98% and 65% at pH 2 and 4, respectively. The TbL2 species formation occurred around pH ~ 3 and was found a maximum of 75% at pH 5.3. The hydrolysis species TbL2H−1 and TbL2H−2 are 45% and 100% at pH 6.4 and > 8.5, respectively.

Fig. 4
figure 4

The pH-dependent species distribution curve of Ln3+ complexes a Eu-hqtsc and b Tb-hqtsc

Anion sensing

Visual detection of anions

The anion sensing asset of the two lanthanide complexes Eu(hqtsc)2Cl (2) and Tb(hqtsc)2Cl (3) was examined considering various anions such as F, Cl, Br, H2PO4, HSO4, I, ClO4, CN, BF4, PF6 and S2− in DMF solution. After adding three equivalents of these anions into the solution of complexes 2 and 3, both showed a prominent change in color with only H2PO4 and CN. In the presence of H2PO4 ions, complex 2 changed from orange to colorless, and the yellow solution 3 became colorless. However, both complexes turned dark red with the CN ions. Such instantaneous changes in color due to the interaction of anions demonstrate that the complexes can be explored as potential probes for the naked-eye sensing and detection of H2PO4 and CN colorimetrically. The color of complexes 2 and 3 in the presence of different anions in DMF solution is displayed in Figure 5a and b.

Fig. 5
figure 5

Colour change in complexes (1 × 10−4 M) in the presence of anions (3 × 10−4 M) in DMF: a Eu-hqtsc and b Tb-hqtsc

Changes in absorption spectra in the presence of anions

Based on the preliminary observations regarding sensing two anions (H2PO4 and CN) by Eu-hqtsc and Tb-hqtsc complexes via spectral and color changes, further studies were undertaken to shed light on the sensing mechanism and selectivity for the ions. The electronic absorption spectra of probes 2 and 3 were recorded in DMF medium, which displayed four bands at 314 nm, 346 nm, 418 nm, and 490 nm. The addition of one equivalent of H2PO4 ions resulted in noticeable changes in the spectra of both probes A 1.5-fold and 1.4-fold enhancement in the absorbance of the band at 346 nm was noticed for 2 and 3, respectively, along with an increase in the absorbance of the band at 314 nm. Also, in both cases, the bands at 418 nm and 490 nm were wholly quenched in the presence of H2PO4 ions. Such changes in the absorption spectra are responsible for the change in color from orange (2) and yellow (3) to colorless. However, with the addition of one equivalent of CN, the spectral changes were not very distinct. Still, adding three equivalents resulted in observable spectral changes in both complexes and the bands at 314 nm and 346 nm disappeared with the appearance of a new band at 342 nm, which was much lower in absorbance (0.57 for 2 and 0.54 for 3). Moreover, an appreciable increase in absorbance of transitions at 418 nm and 490 nm was also observed in both cases. These changes are responsible for the intensification of color from orange (2) / yellow (3) to red, which can be observed with the naked eye. The addition of other anions mentioned above did not show any noticeable changes in the absorption spectra of either probe, even up to 5 equivalents of the addition of the ions. Figure 6a and b show the absorption spectra of complexes 2 or 3 in the presence of different anions.

Fig. 6
figure 6

a UV-Vis absorbance spectra of complexes (0.2 × 10−4 M) in the presence of different anions (0.6 × 10−4 M) in DMF medium a Eu(hqtsc)2Cl; b Tb(hqtsc)2Cl; c complex 2 with H2PO4 and CN; d complex 3 with H2PO4 and CN

For an in-depth understanding of the binding properties of 2 and 3 towards H2PO4 and CN, UV-Vis spectral titrations were carried out in DMF. As shown in Figure 7a and b, incremental addition of H2PO4 ions into the solution of 2 and 3, respectively, depicted a continuous increase in absorbance of the bands at 314 nm and 346 nm while the absorbance at 418 nm and 490 nm decreased continuously with a clear isosbestic point at 380 nm.

Fig. 7
figure 7

Absorbance titration of probes (20 μM) upon addition of H2PO4 (0–25 μM) in DMF: a 2, b 3. Absorbance titration of probes (20 μM) upon addition of CN (0–65μM) in DMF c 2, d 3

The absorption spectra attained saturation after adding one equivalent (0–20 μM) of H2PO4 ions, suggesting a 1:1 stoichiometric ratio of H2PO4 ions with complexes 2 and 3 and are also confirmed by Job’s plot method (Fig. 8a, b). The binding constants of complexes 2 and 3 with H2PO4 ions were calculated from the titration data using B–H plots. The values are found to be 9.09 × 103 M−1 and 6.32 × 103 M−1 for 2 and 3, respectively. The limit of detection (LOD) for the dihydrogen phosphate ions was calculated by plotting Absorbance (A/A0) against increasing concentrations of H2PO4 ions in both cases and found to be 7.6 × 10−6 M and 6.3 × 10−6 M respectively, using equation LOD = 3σ/S, where σ is the standard deviation of the blank solution, and S is the slope of the titration plot.

Fig. 8
figure 8

Job’s plot for determination of the stoichiometric ratio of a 2 with H2PO4 ions; b 3 with H2PO4 ions; c 2 with CN ions; d 3 with CN ions

The probes showed completely different absorption spectra in the presence of CN ions compared to H2PO4 ions. Experiments were performed by incremental addition of CN− ions to the probes. A continuous decrease in the intensity of the bands at 314 nm and 346 nm occurred till 20 μM (1:1). Above that, a completely new band appeared at 342 nm (Fig. 7c, d). The new band also showed a decrease in the intensity up to 60 μM (1:3), after which saturation was attained. A prominent isosbestic point was observed at 368 nm in both cases. In addition to the above observation, the bands at 416 nm and 480 nm showed an increase in the absorbance, and saturation was achieved in the absorbance after adding three equivalents (0–60 μM) of CN ions, signifying a 1:3 stoichiometry binding of cyanide ions which was further confirmed by Job’s plot. The detection limits evaluated towards CN for complexes 2 and 3 are 12 μM and 18 μM (Fig. 9c, d), and the respective binding constants calculated using Benesi Hildebrand plot (Fig. 10c, d), are 2.32×103 M−1 and 2.47×103 M−1, respectively.

Fig. 9
figure 9

The linear relationship plot for calculating the detection limit with the increase in concentration of a H2PO4 vs. 2; b H2PO4 vs. 3 c CN vs. 2; d CN vs. 3

Fig. 10
figure 10

Benesi–Hildebrand curve for calculating binding constant of a 2 with H2PO4; b 3 with H2PO4; c 2 with CN; d 3 with CN

The observed LOD values and binding constants indicate high selectivity and strong binding of both complexes towards H2PO4 and CN anions. The formation of a single isosbestic point in all four cases suggests that only two species, i.e., probe and anion-probe adduct, co-exist in the solution.

Binding mechanism

The appearance of different colors and completely different spectra in the presence of H2PO4 and CN suggests that probes 2 and 3 can simultaneously detect dihydrogen phosphate and cyanide ions. It can also be inferred that both the anions have different binding mechanisms towards the complexes. After adding H2PO4 ions to 2 and 3, the chloride present in the complexes was replaced by dihydrogen phosphate as it is a more potent donor than chloride ion (Scheme 2), subsequently changing the color and spectral behavior of the optical probes [59]. DFT calculations (“Theoretical electronic spectra of europium and terbium complexes” section) revealed that in the visible region the transition involved some percent of chloride to vacant ligand orbitals in the complexes, which dissappeared when the replacement of Cl by H2PO4 ions occured. Obviously, a new adduct Ln(hqtsc)2-H2PO4 formed in the process that showed different spectral behavior and color.

Scheme 2
scheme 2

Mechanism of sensing H2PO4

Experimental results of Job’s plot method showed that cyanide ions bind with the probes in a 1:3 ratio. The binding of three CN can be explained due to the replacement of only one available Cl by CN, and the bonding of remaining two CN ions to the two functional secondary –NH groups. The colorimetric and spectral changes observed in the case of cyanide ions suggest that two CN ions extract the proton from the secondary NH− groups of the thiosemicarbazone moiety from both the ligands resulting in the deprotonated complexes (Scheme 3). As a result, the new adduct [Ln(hqtsc)2CN]2− formed that showed color changes and enhancement in absorbance of the band at 418 and 490 nm along with a new band at 342 nm.

Scheme 3
scheme 3

Mechanism of sensing CN ions by complexes 2 and 3

Emission spectra

The emission behavior of the complexes were studied in DMF by exciting them at 418 nm. The emission spectra of both the complexes in presence of H2PO4 and CN ions were also measured (Fig. S22a, b). The complexes 2 and 3 showed poor emission at 837 nm with intensities 1.24 a.u. and 2.96 a.u., respectively. On adding H2PO4 ions, the emission intensities were increased by ~ 2-fold in each case. In the presence of CN ions, complex 2 showed quenching in the emission from 1.24 a.u. to 0.73 a.u., whereas in complex 3 the emission intensity increased slightly (3.36 a.u.) along with a red shift from 837 to 849 nm. It is concluded that the anions H2PO4 and CN can be detected through emission studies; however, the changes in intensities of emissions are not that prominent as observed in the absorbance spectroscopy.

In-silico studies

To have a deep understanding of the molecular structures, bonding, spectral properties, and sensing mechanism of the ligand and two synthesized lanthanide complexes, theoretical studies were performed at the DFT level.

Geometry prediction

The ligand hqtsc possesses five rotatable bonds and one imine (C=N) bond, which are accountable for the presence of E and Z isomers. Both the isomers were built and tested for the presence of the lowest energy conformer. From the confirmational energy analysis, the E form was found to have the lower energy than Z form. The E-form of the ligand was then optimized at DFT level using BLYPD3/DZ basis set, and the optimized structure (Fig. S15a) thus obtained is identical to that of the single-crystallographic research [54]. The geometric parameters, i.e. bond distances and bond angles, are also comparable details which are given in Table S1. The ligand possesses six donor atoms, i.e. one O, four N, and one S, and can bind to the metal ions through two possible tetradentate binding modes, i.e., (N, N, N, O) or (N, N, O, S). Preliminary calculations at the molecular mechanics level indicated that the N, N, O, S type of coordination mode is energetically more favorable where one N atom is from the hydroxyquinoline group and the other from the imine bond (–C=N–). The coordination number of lanthanides range from six to twelve. However, for Eu3+ and Tb3+, coordination numbers 8 and 9 are the most common. Accordingly, two structures were proposed for the lanthanide complexes: [Ln(hqtsc)2]+ having eight coordination and Ln(hqtsc)2Cl (Ln is Eu3+/Tb3+) with nine coordinated structures. Both the proposed structures were optimized through molecular mechanics. The results suggest that the neutral structures having nine-coordinated geometry are more stable with minimum strain energies than the eight-coordination structures carrying a positive charge. Therefore, the complexes are presented as nine-coordinated structures with formulations Eu(hqtsc)2Cl (2) and Tb(hqtsc)2Cl (3). The stoichiometry has also been confirmed from the experimental results.

The resulting structures were then optimized by the Sparkle model. The sparkle model is an effective tool for the optimisation of lanthanide complexes due to its low processing cost and gives similar outcomes as the high-level quantum mechanics calculations. The geometry from the sparkle model was then further optimized in the gas phase at a DFT level using BLYPD3 functional and DZ basis sets for the Eu-complex and BP86/DZ for the Tb-complex. The optimized structures of complexes 2 and 3 are displayed in Fig. 11. The geometry around the Eu3+ and Tb3+ metal centers may be defined as distorted tricapped trigonal prism (Fig. 11b, e). From the optimized structures of complexes 2 and 3, it can be seen that the hydroxyquinoline rings of both the ligands bend towards the M–Cl bond, giving a butterfly like appearance (Fig. 11c, f). In the case of complex 3 the hydroxyquinoline rings are slightly more bent towards the M–Cl bond than complex 2. The M–S bonds are elongated one and present above the wings of seemingly butterfly formed by hydroxyquinoline rings. The geometric parameters of both complexes are given in SI (Table S2).

Fig. 11
figure 11

DFT optimized structure of a complex 2; d complex 3 (ball and stick model). Polyhedron with distorted tricapped trigonal prismatic geometry of b 2; e 3− Butterfly appearance, c 2; f 3

DFT predicted IR of Ln3+ complexes

The theoretical IR data was obtained under the same DFT level as the optimization, and compared it with the experimental data (Table 2), the slight difference in calculated and experimental values is because the experimental spectra were taken in solid phase, whereas computational frequency analysis is done in gaseous phase. Each complex molecules contains 55 atoms, and therefore, 159 frequencies are predicted. The ligand hqtsc is projected to have 75 peaks corresponding to 27 atoms. Figures S17S19 depict the theoretical IR spectra of hqtsc and the complexes. Figure 12a and b shows the regression analysis plots of complexes 2 and 3, respectively, with acceptable correlation factor (R2).

Table 2 Comparison of calculated (GGA-BLYP-D3 for complex 2 and GGA-BP86 for complex 3) and experimental (KBr pallet) IR frequencies
Fig. 12
figure 12

Correlation of experimental and theoretical IR a complex 2; b complex 3

Theoretical electronic spectra of europium and terbium complexes

The theoretical computations were used to establish the absorption spectra of hqtsc in the gas phase at the TD-DFT level using MODEL SAOP with bandwidth 30. From the theoretical absorption spectrum of hqtsc, two prominent peaks at 300 and 346 nm having oscillator strengths of 0.4107 and 0.3891 were identified, which were in close agreement with experimental spectra (Fig. S20). Both the ligand transitions are considered as π → π* transitions. The frontier orbitals involved in the electronic transitions of the ligand are represented in Table S3.

The theoretical absorption spectra of complexes were initially predicted using ZINDO/s at CIS level in Orca where the lanthanide ion is replaced by +3e point charge. The theoretical transitions obtained were in good correlation with the experiment values with zero offset. The electronic spectra of the complexes were also calculated at the TD-DFT level using GGA/PBE functional and DZ basis set. The offset values for Eu(hqtsc)2Cl and Tb(hqtsc)2Cl were − 690 and − 670 nm, respectively, and the bandwidth was set as 15 in both the cases to match the theoretical spectra with the experimental one (Fig. 13). A comparison of the results from the ZINDO/s and TD-DFT calculations with the experimental results is given in Table 3. The theoretical electronic spectra of complexes obtained from TD-DFT calculations show four absorption bands. For Eu-complex, the transitions at 317 nm, 341 nm, 384 nm, and 410 nm correspond with oscillator strengths 0.0009, 0.0026, 0.0002 and 0.0004, respectively, whereas in the case of Tb-complex, the spectral bands at 317 nm, 365 nm, 398 nm and 444 nm with oscillator strength 0.0008, 0.0012, 0.0003 and 0.0001 respectively were obtained at the DFT. As depicted in Fig. 13a and b, the theoretical results differ slightly from experimental electronic spectra of Eu(hqtsc)2Cl and Tb(hqtsc)2Cl exhibiting four bands at 314, 346, 418, and 490 nm each; this difference can be explained on the basis of the fact that experimental studies were done in DMF medium whereas theoretical calculations carried out in the gaseous phase in different functionals and basis sets.

Fig. 13
figure 13

Theoretical (gas phase, at DFT level) and experimental (DMF, 0.2 × 10−4 M) electronic spectra of a complex 2; b complex 3

Table 3 Compararison of experimental and calculated (ZINDO/s and GGA/PBE) electronic transitions

In the case of the europium complex, the band at 317 nm occurs due to the transition from (HOMO) to LUMO+4 with 63.8% contribution and 18.9% contribution from HOMO-21 → LUMO. The high energy transition at 341 nm is due to HOMO-19 → LUMO (56.6%) and HOMO-21 → LUMO (16.5%). The third band at 384 nm occurs due to HOMO-1 → LUMO+2 (67.9%) and HOMO-3 → LUMO+1 (22.3%). The fourth transition at 410 nm involves a major contribution from HOMO → LUMO+2, i.e., 90.1%. In the case of the terbium complex, the transition at 317 nm is due to the 61.9% contribution of HOMO-4 → LUMO+3. The second transition at 365 nm, having the highest oscillator strength, is due to a 59.1% contribution from HOMO-1 → LUMO+6 and a 38.8% contribution from HOMO-4 → LUMO+1. The third band at 398 nm involves transitions due to HOMO-3 → LUMO+2 (33.6%) and HOMO-2 → LUMO+4 (27.6%). The fourth band at 444 nm has minimum energy due to HOMO-2 → LUMO+4 (32.6%) and HOMO-4 → LUMO+1 (30.2%) (Tables 4, 5).

Table 4 Most probable transitions involved in the absorption spectra of Eu(hqtsc)2Cl.
Table 5 Most probable transitions involved in the absorption spectra of Tb(hqtsc)2Cl

Sensing mechanism through DFT

To further establish the anion sensing mechanism of the complexes towards dihydrogen-phosphate and cyanide ions, geometry optimization of Eu3+ and Tb3+ anion complexes was done at the DFT level using GGA-BLYPD3-DZ and GGA-BP86-DZ functionals respectively. In the case of complex 2, the total binding energy obtained after optimization of Eu(hqtsc)2Cl is -330.69 eV, whereas for Eu(hqtsc)2–H2PO4 it is − 359.66 eV and for Eu(hqtsc)2–CN it is -339.05 eV. In complex 3, the total binding energy for Tb(hqtsc)2Cl is -342.27 eV, for Tb(hqtsc)2–H2PO4 is − 374.94 eV and for Tb(hqtsc)2–CN is − 366.61 eV. The results show that the total binding energy of 2 and 3 decreases in the presence of H2PO4 and CN ions, and they become more stable. Also, from Fig. 14, it is seen that the HOMO to LUMO energy gap of both complexes decreases when they form complexes with H2PO4 and CN ions. Both the complexes are expected to be more stable with H2PO4 and CN than Cl anion and hence replace chloride. The new complexes obtained have different spectral properties; therefore, 2 and 3 can sense H2PO4 and CN ions.

Fig. 14
figure 14

HOMO–LUMO energy gap of the Eu3+ and Tb3+ anion complexes

Experimental

Materials and measurements

All of the reagents and compounds listed were obtained from TCI and Sigma Aldrich and were utilised without additional purification. All the solvents (DMSO, DMF, diethyl ether, acetone, methanol, ethanol) were from CDH and Loba Chemie, which were dried through standard methods before use. The FT-IR spectra were obtained using KBr pellets and an IR Affinity-1S Shimadzu spectrophotometer in the frequency range of 4000–400 cm−1. Electrospray mass spectral analyses (ESI-MS) were done on XEVO G2-XS QTOF mass spectrophotometer. 1H and 13C NMR spectra for the ligand and complexes were collected in deuterated DMSO on Bruker Advance Neo 500 MHz spectrometer. UV–Visible studies were performed on Horiba scientific Duetta spectrophotometer using quartz cell having path length 1 cm. The fluorescence spectra were measured in DMF on an Agilent Technologies Cary Eclipse fluorescence spectrophotometer with slit width 10. All the potentiometric titrations were done on Orion star A111 pH meter from Thermo Scientifics using Thermo-Fischer Ross electrode (8102BNUWP) in highly aqueous medium i.e Water: DMSO in 9:1 v/v ratio. Theoretical calculations were done using AMS suite [60]. The elemental analysis for the sulphur [61] and chlorine were estimated quantitatively by the gravimetric method, and Eu and Tb were done by complexometric titration using EDTA [62].

Synthesis

Synthesis of hqtsc

8-Hydroxyquinoline-2-carbaldehyde (0.519 g, 3 mmol) dissolved in 15 ml of ethanol was mixed with the solution of thiosemicarbazide (0.273 g, 3 mmol) prepared in 15 ml hot ethanol and the resultant solution was refluxed for 5 h with constant stirring [54]. The resulting pale-yellow residue (0.628 g, 85.16%) was washed several times with ethanol and diethyl ether and dried in a vacuum. Molecular Formula: C11H10N4OS; M.P: 248 °C; IR (KBr, cm−1 ): 3689 (OH), 3387, 3248 (NH2), 3153 (NH), 1539 (C=N), 1327 (C=S), 939 (C–S); 1H NMR (500 MHz, DMSO-d6, δppm): 11.86 (s, 1H, –NH–), 9.82 (s, 1H, –OH), 8.44 (d, 1H, Ar–H), 8.42 (s, 1H, –NH2), 8.32 (s, 1H, –CH=N), 8.29 (d, 1H, Ar–H), 8.26 (s, 1H, –NH2), 7.44 (t, 1H, Ar–H), 7.38 (d, 1H, Ar–H), 7.11 (d, 1H, Ar–H). 13C (500 MHz, DMSO-d6, δppm): 178.39 (s, C=S), 153.31 (s, C–OH) 142.31 (s, C=N), 151.74, 138.05, 136.05, 128.69, 127.99, 118.35, 117.66, 112.00 (C of aromatic rings). HRMS (ES)+: m/z [M + H]+: 247.0653 (found : 247.0664).

Synthesis of [Eu(hqtsc)2Cl]

0.2 g (0.81 mmol) of ligand hqtsc was suspended in 10 ml methanol, followed by a few drops of 1M NaOH to maintain pH 8.0. The resulting mixture was changed into an orange-colored solution. A solution of EuCl3.6H2O (0.149 g, 0.40 mmol) in 5 ml ethanol was slowly added under a nitrogen atmosphere while the precipitate started forming. After complete addition, the suspension was stirred at room temperature for 2 h. The dark red compound was then filtered, washed multiple times with methanol and diethyl ether, and dried under a vacuum. Yield: 82%; Solubility: DMSO and DMF; Molar conductance: 13.5 ohm−1 cm2 mol−1; HRMS (positive ions) m/z [ML2]: exact mass: 643.0190; found: 643.0215 calculated for C22H18N8O2S2Eu3+; elemental analyses (%) Exp. (Calc.): Eu 22.41 (22.41), S 9.44 (9.46), Cl 5.22 (5.23); (IR (νcm−1): 1535 (C=N), 1273 (C=S), 495 (Eu–N); 439; (Eu–O).

Synthesis of [Tb(hqtsc)2Cl]

The terbium polyhedral was synthesized using a method similar to that used for the europium compound. TbCl3.6H2O (0.151 g, 0.40 mmol) in 5 ml ethanol was stirred for 2 h with the alkaline solution of ligand. The resulting cherry red precipitate was filtered, washed 4–5 times with methanol and diethyl ether, and dried in vacuum. Yield: 84%; Solubility: DMSO and DMF; Molar conductance: 14.8 ohm−1cm2mol−1; HRMS (positive ions) m/z [ML2]: exact mass: 649.0231; found: 649.0266 calculated for C22H18N8O2S2Tb3+; Elemental analyses (%) Exp. (Calc.): Tb 23.21 (23.20), S 9.33 (9.36), Cl 5.10 (5.18); IR cm−1): 1535 (C=N), 1271 (C=S), 497 (Tb–N); 441 (Tb–O).

TGA studies

TGA of samples were obtained on Perkin Elmer STA 6000 thermal analyser by using a platinum crucible. Thermogravimetric studies were performed under a nitrogen atmosphere, rate of heating and temperature range was set as 20.0 °C min−1 and 40–750 °C respectively.

Potentiometric titrations

Potentiometric titrations of hqtsc and its Eu3+ and Tb3+ complexes were performed at 25 ± 1 °C in a double-wall jacketed titration flask using an Orion star A111 pH meter. The glass electrode was calibrated with pH values of 4 and 9.2 buffer solutions. Potassium hydroxide (0.1 M) was standardized against 0.1 M standard KHP solution, and 0.1 M HCl solution was then standardized against the standard KOH to get accurate concentration values. The 1:2 mixture of ligand and Ln salts (Eu3+, Tb3+) having conc. 1 × 10−3 were acidified using 0.1 M HCl, and ionic strength was maintained with 1.0 M KCl solution. The solutions were then titrated with standardized alkali solution in pH range of 2–11. The data were fitted by a global fitting program Hyperquad [63] to calculate log β values. Species distribution curves were generated using Hyss 2009 [64].

Spectrophotometric titrations

Spectrophotometric titrations of hqtsc and its lanthanide complexes were carried out similarly to potentiometric titrations. Here, the concentration for both ligand and Ln salts was 0.5 × 10−3 in 1:2 ratio. Absorption spectra were taken in Thermo Scientific Evolution 201 UV–Vis spectrophotometer after each addition of KOH. 2 ml solution was taken in quartz cuvette for taking the absorption spectra, and the solution was put back carefully in the titration flask for further addition of KOH. The formation constants of metal complexes were evaluated by fitting data into the computer program Hyspec [65].

Anion sensing studies

Stock solutions of Eu(hqtsc)2Cl (1), Tb(hqtsc)2Cl (2) and anions (tetra-n-butyl ammonium salts) of 1 × 10−3 M were prepared in DMF. Initially, a 3 ml solution of each complex (20 × 10−6 M) was prepared by adding 0.06 ml from the respective stock solutions of metal complexes and diluting the remaining volume with DMF. Each complex’s absorbance spectra were then recorded. The interaction of both the probes with the anions was studied colorimetrically. The absorbance spectra of complexes 2 and 3 were taken by combining one equivalent of complex 2 or 3 with three equivalents of each anion separately, a 3ml cuvette solution containing 20 × 10−6 M solution of 2 or 3 and 60 × 10−6 M anion solution in DMF. The absorption spectra of the complexes in the presence of different anions were recorded. The association constant (Ka) values of the complexes with H2PO4 and CN ions in DMF were calculated based on a B–H plot using the standard equation Ka = 1/slope [66]. The slope was obtained via linear fitting the plot 1/analyte concentration vs. 1/change in absorbance. The LOD calculations were computed using equation 3σ/slope, where the standard deviation of the maximum absorbance of the blank (probes 2 and 3, respectively) is represented as σ [67]. In this case, the slope is calculated by linearly fitting a plot of absorbance vs. concentration of analyte.

Computational studies

The Linux operating system was used to do the DFT computations. The probable molecular structures of compounds were built using complex build [68, 69] and initially optimized in Avogadro using the universal force field (UFF) [70, 71]. The lanthanide complexes were optimized again using the sparkle model [72, 73]. The optimized compounds were finally optimized in DFT using the AMS 2021 program. GGA-BLYP-D3-DZ/GGA-BP-86-DZ were used as an XC functionals for optimization and frequency calculations [74,75,76]. Model SAOP and GGA-PBE were used for the spectral calculations of the ligand and complexes, respectively.

Conclusions

Two lanthanide coordination polyhedra Eu(hqtsc)2Cl and Tb(hqtsc)2Cl were synthesized by employing tetradentate 8-hydroxyquinoline-based thiosemicarbazones. The polyhedra were found to detect H2PO4 and CN ions in DMF. They showed a naked eye color change from orange or yellow to colorless, along with the corresponding changes in the absorption spectra. It is assumed that H2PO4 a hard donor replaces chloride from the respective complexes and forms a 1:1 complex–H2PO4 adduct. Additionally, the europium and terbium polyhedra showed a visible color change from orange/yellow to red in the presence of CN ions due to the displacement of chloride ions by cyanide ions. The cyanide ions are expected to abstract a proton from each secondary –NH group of the thiosemicarbazide moiety, forming di-negative complex–CN adducts. Further, solution thermodynamic studies revealed the formation of ML2H2, ML2H1, ML2, ML2H-1, and ML2H-2 complexes with high log β. The structure of the ligand hqtsc obtained from the DFT studies matches the crystal structure of a similar molecule. The optimized Eu3+ and Tb3+ complexes were found to be nona-coordinated with distorted tricapped trigonal prism geometry, demonstrating a fashionable ‘Butterfly’ appearance. The sensing mechanisms for the anions, H2PO4 and CN are also supported through DFT studies. The novel 8HQ-based lanthanoid probes can be explored further to find suitability for applications like sensor technology and medicine to address anions overload-caused diseases.