Hybrid organic-inorganic coatings via electron transfer behaviour

A novel method to functionalize the surface of inorganic coating by growing organic coating has been investigated based on microstructural interpretation, electrochemical assessment, and quantum chemical analysis. For this purpose, inorganic coating with magnesium aluminate, magnesium oxide, and titanium dioxide was prepared on magnesium alloy via plasma electrolytic oxidation (PEO), and, then, subsequent dip-coating method was used to tailor organic coating using diethyl-5-hydroxyisophthalate (DEIP) as organic molecules. The incorporation of TiO2 particles worked as a sealing agent to block the micro-defects which resulted mainly from the intense plasma sparks during PEO. In addition, such incorporation played an important role in enhancing the adhesion between inorganic and organic coatings. The use of DEIP as organic corrosion inhibitor resulted in a significant decrease in porosity of inorganic coating. Quantum chemical calculation was used to clarify the corrosion inhibition mechanism which was activated by introduction of DEIP. Thus, the electrochemical analysis based on potentiodynamic polarization and impedance spectroscopy tests in 3.5 wt% NaCl solution suggested that corrosion resistance of magnesium alloy sample was enhanced significantly due to a synergistic effect arising from the hybrid inorganic and organic coatings. This phenomenon was explained in relation to electron transfer behaviour between inorganic and organic coatings.

of protective oxide coating on the metal surface 14,15 . The adsorption of organic molecules onto the metal surface would depend primarily on the surface charge of the metal and physicochemical properties of inhibitor molecules. Hence, such adsorption process was influenced by the presence of polar functional groups, steric factors, aromaticity, several heteroatoms (i.e. sulfur, nitrogen, oxygen), the electron density at the donor atoms, the orbital characteristics of the donating electrons, and the electronic structure of the inhibitor [16][17][18][19][20] . It has been believed that organic compounds were adsorbed onto the metal surface with an aid of their heteroatoms which possessed high basicity and electron density. They would work as corrosion inhibitor. In addition, these heteroatoms, which possessed the free electron pairs, would act as electron source for 'electron transfer' . In these cases, donor groups were expected to facilitate efficient transfer of electrons and, also, lead to excellent adhesion performance during heterogeneous bonding system. Thus, a specific bond took place between unpaired electrons and coating surface. Organic compounds containing multiple bonds tend to be an effective inhibitor since the introduction of multiple bonds to chemical system should increase the inhibition efficiency of most organic compounds. If both the features of corrosion inhibitors and coating surface were combined, we believed that corrosion inhibition would be anticipated to be attained 16 .
The inhibitory roles of organic compounds, such as salicylaldoxime, thioacetamide, quinaldic acid, α-benzoionoxime, 2-(2-hydroxyphenyl) benzoxazole, cuprizone, and quinaldic acid, were understood in case of aluminum-based alloys [21][22][23][24][25][26] . The resilience of the passive alumina coating for long immersion time affected the formation of complex aluminium chelate. The inhibitory action of organic compounds during corrosion process occurred via the formation of protective film consisting of metal-organic complexes. Here, we considered diethyl-5-hydroxyisophthalate (DEIP) as kind of phenolic organic compounds would exhibit good efficiency of corrosion inhibition due to its hydroxyl (OH) and methoxy (OCH 3 ) groups for succinct electron transfer.
The main purpose of the present work is to propose a concept of hybrid organic-inorganic coatings which has rarely been reported earlier. And, we look into a synergistic influence of inorganic coating with incorporation of TiO 2 during PEO method and organic coating by organic inhibitor of DEIP during DC method on electrochemical stability of magnesium alloy. As to chemical analysis on a role of organic compound, quantum chemical calculations are used to reinforce theoretical rationale for the experimental results and to investigate the mechanism underlying the synergetic effect coming from hybrid organic-inorganic coatings in relation to electron transfer behaviour of DEIP.

Results
Surface morphologies of hybrid inorganic-organic coatings. The surface morphologies of hybrid inorganic-organic coatings was illustrated in Fig. 1a-m; this process consisted of a two-step strategy involving plasma electrolytic oxidation for formation of the inorganic coatings and chemical treatment to load the surface with DEIP. Figure 1a-f reveals the differences in the surface morphology of the coatings generated via PEO with and without the addition of TiO 2 particles. As shown in Fig. 1d-f, TiO 2 particles were fused onto the surface of the inorganic coating and inside the open pores. In other words, the high magnification images of the samples with TiO 2 (Fig. 1f) showed that TiO 2 was present at the surface of the coating in the cavities (such as micropores). Although PEO with TiO 2 resulted in more pores, their pore sizes were smaller than those obtained with the other coatings and a large number of the pores were partially filled. Therefore, the open pores on the coating surface were considered as uptake paths for particles to enter into the coating, given that the pores in the coatings deposited via PEO were partially filled with TiO 2 . Seyfoori et al. [25][26][27][28][29] confirmed that the accumulation of particles in the vicinity of (and inside) the pores was higher than in the other zones. In general, the electrophoretic force of the particles, physical mixing, and vigorous fluctuation of the molten oxide by the plasma discharge are the main factors leading to the incorporation of particles into the inorganic coatings on Mg alloys 30,31 . Moreover, the TiO 2 particles incorporated into the inorganic coating might be either partly reactive or inert depending on the substrate, applied electrical parameters, electrolyte composition, and the properties of the particles 32 . However, TiO 2 with a higher melting point would generally undergo inert incorporation or partly reactive incorporation, resulting in the formation of amorphous phases in the coatings 33 . The addition of TiO 2 to the sodium aluminate electrolyte resulted in coverage of the sample surfaces ( Fig. 1d-f) with a more uniform film than that shown in Fig. 1a-c [32][33][34] . Therefore, the addition of TiO 2 to the sodium aluminate electrolyte could induce significant changes in the surface morphology, producing a uniform film with less structural imperfections on the magnesium alloy.
The SEM images of all the coatings after 1 and 2 days of immersion in diethyl-5-ethylisophalate (DEIP) solution are presented in Fig. 1g-o. The organic compound was crystallized on the surface after 1 day of immersion. Figure 1g-l shows overall mono-phase precipitation of DEIP, whereas Fig. 1m-o shows bi-phasic DEIP precipitation after 2 days. Bulk DEIP adopted a needle-like shape on the inorganic coating surface without TiO 2 ( Fig. 1g-i), whereas the DEIP molecules on inorganic coating with TiO 2 had a coral-like shape (Fig. 1j-l). Moreover, the sizes of the organic molecules on the AZ31 Mg alloy increased in the presence of the TiO 2 particles, compared to the inorganic coating without particles. When the immersion time was increased to 2 days, DEIP covered almost the entire coating surface when the TiO 2 particles were used. In other words, the amount of DEIP incorporated into the system increased with increasing immersion time. The facile formation of organic coating after immersion in DEIP solution might be due to the presence of the porous coating and the adsorbed functional groups on the TiO 2 particles. Therefore, the adsorbed functional groups on the TiO 2 surface significantly enhanced the nucleation of DEIP. In general, the solvent molecules (H 2 O and C 2 H 5 OH) could also be adsorbed on the Mg alloy or at the inorganic coating/ethanolic solution interface. Therefore, the adsorption of the organic compound from the ethanolic solution can be regarded as quasi-substitution between the organic molecules in the ethanolic solution [Org (sol)  In Eq. 1, x is the size ratio, i.e., the number of water or ethanol molecules replaced by one organic inhibitor molecule.
Chemical composition of hybrid inorganic-organic coatings. Figure 2 shows the elemental mapping images of Mg, Al, O, B, Ti, and C on the surface of the magnesium alloy without and with protection from the (d-f) coating layer formed by PEO process with TiO 2 particles (sample II); (g-i) coating layer formed by PEO process followed by DC in DEIP for 2 days at ambient temperature; (j-l) coating layer formed by PEO process with TiO 2 particles followed by DC in DEIP for 1 day at ambient temperature; (m-o) coating layer formed by PEO process with TiO 2 particles followed by DC in DEIP for 2 days at ambient temperature; figures are shown at various magnifications. Connected micropores were found in samples (I) and (II).
inorganic coating and organic coating. Carbon was not evenly distributed in over the unprotected magnesium alloy surface after immersion in ethanol. However, Mg, Ti, and Al were homogeneously distributed over the surface of the coated magnesium alloy, which suggests that corrosion would be effectively reduced by the synergistic effect. As shown in Fig. 2, EDS analysis indicated the presence of the characteristic elements on the coating surface. After modification of the surface with DEIP, the elemental composition changed. The contents of Mg, Al, and C (Table 1) in the coating that was not treated with DEIP were 33%, 15%, and 6%, respectively while the corresponding values of the samples treated with DEIP for 1 day were 24%, 9%, and 20% and those for the sample treated via PEO with TiO 2 but not immersed in DEIP were 18%, 19%, and 2%. The corresponding values for the DEIP-treated coating were 8%, 2%, and 56%, respectively. The increase in the C content and the decreased Mg and Al content (shown in Table 1) were attributed to the aromatic structure of the organic compound formed on the coating surface. Considering the fact that the as-formed coating has endured rinsing from the ethanol solvent, it was indicated that dimethylene-5-hydroxyisophthalate film was successfully modified onto porous surface.
FT-IR spectra of the organic coating formed over the inorganic coating were taken at the range of 4000-400 cm −1 to analyse the functional groups of the organic coating after immersion in DEIP solution for up to 1 day (Fig. 3). FT-IR absorption bands were observed at 3361, 1706, 1596, 1432, 1356, 1238, 1115, 997, 883 and 756 cm −1 . The broad band at 3361 cm −1 was attributed to the OH group and the band at 1706 cm −1 indicated the presence of C=O groups 35 . C-O stretching vibrations were observed at 1242 and 1115 cm −1 , confirming the presence of phenolic and ester C-O in the organic coating 35 . The absorption bands at 988 cm −1 and 1090 cm −1 with a shoulder at 1119 cm −1 could be assigned to the ester group 36 . The bands at 1596 and 1432 cm −1 were attributed to the C=C stretching vibrations of the aromatic ring.
As mentioned, XRD was used to determine the phase structure of the inorganic coating. Some peaks from the substrate were also observed in the spectrum. The phases of the organic coatings formed over the inorganic films  containing anatase TiO 2 after immersion in DEIP solution for 1 and 2 days were investigated by XRD ( Fig. 4a-d).
As shown in (Fig. 4c,d), characteristic diffraction peaks of the crystalline organic compound were clearly detected at 2θ = 26°, 27, 28°, and 44° in the XRD pattern, indicating that these needle-or coral-like species were assemblies of organic molecular crystals. After immersion, the surfaces were also partially covered with a discontinuous coating of molecular clusters. However, the intensity of the peaks of MgAl 2 O 4 , MgO, and Mg decreased after immersion in DEIP compared with the intensity of the peaks prior to immersion. This was further confirmed by changes in the relative intensities of the peaks corresponding to the organic compound ( Fig. 4c,d). In comparison, the surfaces of the AZ31 Mg samples (Fig. 4a,b) were completely covered with a newly formed coating of molecular clusters, which exhibited flower-like morphology based on high magnification observation. From Fig. 5a, the hybrid organic-inorganic coatings consist of Mg, Al, Ti, B, O, K and C. The C was derived from the organic coating. The XPS O1s spectrum (in Fig. 5d) was wide and asymmetric, indicating the presence of more than one chemical state of O in the coating. After curve-fitting, four   Table 2 shows the atomic composition of the organic and inorganic coating. The amount of C increased and the content of Mg, Al, and Ti decreased after the immersion process, suggesting an increase in the content of the organic compounds in the organic coating on the treated samples. It would be noted Electrochemical characterization of hybrid inorganic-organic coatings. The corrosion behavior of these coatings was evaluated by the potentiodynamic polarization technique in 3.5 wt.% NaCl solution at constant time, as shown in Fig. 6. The key electrochemical parameters, including the corrosion potential (E corr ), corrosion current density (i corr ), anodic and cathodic Tafel slope (β a , β c ), and inhibition efficiency (η) derived from the polarization curves were given in Table 3. The values of η were calculated as follows 39,40 .
where i corr,o and i corr represent the current densities of the uncoated and coated magnesium samples, respectively.
In the presence of DEIP (Fig. 6a), the polarization curves shifted to lower current densities, which indicated that the rate of corrosion of magnesium was suppressed to a certain extent, and the decrease in the cathodic current densities would be related to the reduction of dissolved oxygen 41 . These results revealed that this DEIP would act as corrosion inhibitor by inhibiting hydrogen reduction as well as magnesium anodic dissolution. In other words, it was clear that the protection from PEO coating alone was not sufficient to prevent severe corrosion of  Table 2. Atom percentages from XPS data for the sample coated the PEO process (I), PEO process with TiO 2 particles (II), PEO process followed by immersion in DEIP solution for 2 days (III), and PEO process with TiO 2 particles followed by immersion DEIP solution for 2 days (IV). magnesium in NaCl solution. Therefore, as shown in Fig. 6a, corrosion resistance was obtained due to the synergetic action of PEO coating and organic coating than obtained with PEO coating alone. These results indicated that DEIP exhibited a favorable synergistic effect that prevents the corrosion of magnesium due to its adsorption and the formation of a protective film on the surface of the inorganic coating. These organic-inorganic coatings caused a change in the anodic and cathodic Tafel slopes and no definite trend of the shift in the values with the use of different compositions of the inorganic coating could be observed, suggesting that these compositions behave as mixed-type (anodic/cathodic) inhibitors 42 . The hydrogen evolution was probably reduced by the surface blocking effect. Table 3 reveals that the corrosion current densities (i corr ) decreased slightly with the PEO coating only. In contrast, the value of i corr decreased obviously in the presence of both DEIP and PEO coating. These values of i corr continued to decrease and η that was calculated from i corr increased with the presence of DEIP. The maximum value of η (as shown Table 3) was 88% for the PEO coating (without TiO 2 particles) but this value reached 99.9% due to the synergistic effect of DEIP with PEO coating (with TiO 2 particles). It was thus evident that a more effective barrier film of inhibitor molecules was formed on the coating surface by synergy, thereby blocking the active sites on the magnesium surface to protect the magnesium alloy from corrosion [43][44][45] . Figure 6b shows the impedance spectra obtained of hybrid inorganic-organic coatings after immersion in 3.5 wt.% NaCl in the absence and presence of the corrosion inhibitor at room temperature. The total impedance was higher for the system containing DEIP than for the system without DEIP, indicating that this inhibitor would protect the magnesium alloy against corrosion. These results were confirmed by the corresponding impedance spectra, where higher impedance was observed for the systems containing DEIP (from the semicircles at low frequencies) compared to that of the system without the inhibitor. This difference indicated that the inhibitor protects the magnesium alloys from corrosion (Fig. 6b). The Nyquist spectra had two characteristic capacitive loops in the high and low frequency ranges, respectively 46 . Figure 6c presents the equivalent circuit model assigned for all of the present samples, from which the parameter values were obtained and listed in Table 4. The model used to explain the corrosion behavior of the Mg alloy was based on the impedance plots and EIS studies of Gao et al. 47 , Baril et al. 48,49 , and Song et al. 50 on the PEO coating. In the circuit, R s represents the corrosion resistance of the NaCl solution between the sample and counter electrode; R 1 is the outer part resistance, and CPE 1 was the constant phase element, which was related to the capacitance of the organic coating; R 2 represents the contribution of inner part to the overall corrosion resistance (Fig. 6c) and the corresponding capacitance was represented by CPE 2 . R ct and L are in series to represent the inductive impedance behavior, where R ct represents the charge transfer resistance and L indicated the corrosion behavior at low frequencies 51,52 . Table 4 shows the EIS fitting data obtained from the equivalent circuits and the experimental values obtained from the impedance data.
Quantum chemical calculation. Quantum chemical calculations have been used to study the relationship between the molecular/electronic structure of an organic inhibitor and its inhibition properties. Figure 7 shows the equilibrium geometry structure, frontier molecular orbital density distribution, the neutral form, and electrostatic potential (ESP) map of the organic molecule. The obtained quantum chemical parameters, such as the energy of the highest occupied molecular orbital (E HOMO ), the energy of the lowest unoccupied molecular orbital (E LUMO ), separation energy (ΔE), dipole moment (μ), electronegativity (X) and fraction of electron transfer (∆N) for the DEIP molecule are listed in Table 5. It was known that E LUMO was related to the electron accepting ability of a molecule, whereas E HOMO was often associated with the capacity of a molecule to donate electrons. In other words, a high value of E HOMO was likely to indicate a tendency of the molecule to donate electrons to appropriate acceptor molecules with low energy and empty molecular orbitals, whereas the lower the value of E LUMO , the more Sample E corr (mV) i corr (mV/cm 2 ) β a (µ/cm 2 ) β c (mV/cm 2 ) η (%)   Table 4. Electrochemical impedance parameters for the samples subjected to PEO tratment using different electrolytes. All values are iterated by the analysis in the context of the equivalent circuit model.
probable it is that the molecule will accept electrons 53,54 . However, the ∆E described the stability of a molecule; smaller values of the separation energy (energy gap) (E LUMO -E HOMO , ∆E) indicated that a molecule would potentially be adsorbed more easily on the surface of the inorganic coating. As the energy gap decreased, the reactivity of the molecule towards the inorganic coating increases, thus leading to enhanced of the inhibition efficiency of the molecule. Additionally, the dipole moment (µ) has been widely used to indicate the polarity of inhibitor molecule. Higher values of μ correspond to enhanced corrosion inhibitor molecule 55,56 . Indeed, the dipole moment of DEIP is 2. 2.768 D, which was higher than that of a water molecule (i.e., 1.88 D). The high dipole moment probably increases the adsorption between the corrosion inhibitor and coating surface. These results in adsorption of DEIP on the surface of the inorganic coating, accompanied by desorption of water molecules, thereby protecting the magnesium alloy against the NaCl solution. Furthermore, according to Koopmans' theorem 57 , the frontier molecular orbital energies E HOMO and E LUMO were related to the ionization potential (I) and the electron affinity (A) of the magnesium atoms and the inhibitor molecules.

HOMO LUMO
The absolute electronegativity (X) and the global hardness (γ) of the inhibitor molecule can be described as follows 58 .
Finally, the fraction of electrons transferred from the inhibitor to the metallic surface, ∆N, is given by Eq. 6 59 .   Table 5. Quantum chemical parameters for diethyl-5-hydroxyisophalate (DEIP).
Mg inh

Mg inh
Thus, to calculate the fraction of electrons transferred (∆N), the theoretical value of the electronegativity of the Mg atom, X Mg (2.972 eV) and the global hardness of the Mg atom, γ Mg , (4.689 eV) were employed. X inh and γ inh are the absolute electronegativity and global hardness of the DEIP molecules, respectively. Indeed, the ∆N values were correlated to the inhibition efficiency resulting from electron donation. If ∆N < 3.6 (Table 5), the inhibition efficiency would be increased with increasing electron-donation ability to the metal surface 60,61 .
As seen from Fig. 7, the preferred active site for electronic attack and the favorited sites for interaction with the metal surface were located within the region close to the O atoms and aromatic ring. In addition, the electrons of the O atoms on the polar groups were completely transferred to the empty d or p orbitals of the magnesium atom.

Discussion
Electrochemical behaviour. In the presence of DEIP, potentiodynamic polarization results in a 3.5 wt.% NaCl showed an appreciable decrement in both anodic and cathodic current densities. The corrosion current decreased with an increase in the concentration of EDIP on the surface due blocking of the active sites of the inorganic coating 62 . The addition of DEIP has an inhibitive effect on both the anodic and cathodic parts of the polarization curves at lower current densities. This result suggested that the addition of DEIP would be reduced the dissolution of the anode and retards the hydrogen evolution reaction (Table 3). Furthermore, addition of DEIP induced a small positive shift of E corr values, suggesting that DEIP would act as a mixed type inhibitor, predominantly inhibiting the anodic reaction 63 . The variations of β c and β a showed that both the cathodic and the anodic reactions of the corrosion process were suppressed by the organic and inorganic coating on the surface of the magnesium alloy. For a comprehensive investigation on the corrosion behaviour, EIS was also performed in a 3.5 wt.% NaCl. By fitting these curves to a suitable equivalent circuit shown in Fig. 6c, the corrosion parameters were determined and recorded in Table 4. Assessment of Table 4 shows that the addition of DEIP increased the R 1 and R 2 values, and the effect was enhanced with increasing concentration. Thus, it would be inferred that DEIP adsorption layers were formed on the metal surface, indicating the adsorption of this compound on the surface of AZ31 Mg and more efficient blocking of the surface against charge and mass transfer [63][64][65] . As shown in Table 4, the values of the outer part resistance increased with an increase in the coating thickness. This increase could be attributed to the formation of an organic coating on the surface of the inorganic coating. Furthermore, it was evident that both DEIP and TiO 2 exhibited a synergistic effect that led to higher resistance of all parts of the coating layers. On the other hand, the CPE decreased with an increase in the coating thickness, which can be attributed to enhancement of the thickness of the electrical double layer 66 . The coating layers between the charged metal surface and the solution can be considered as an electrical capacitor 65,66 . In addition, the charge transfer resistance (Table 4) increased with an increase in the concentration of the inhibitor. This was very important because higher R ct values indicated better inhibition performance. Figure 8 shows the schematic illustration describing the fabrication process of the hybrid organic-inorganic coating via PEO and chemical DC. During the PEO, the main electrochemical reactions occurring at the coating/electrolyte interface using the aluminate-containing electrolyte are as follows:

Mechanism of hybrid inorganic-organic coatings.
During the PEO process, Mg would transform into Mg (II) according to by the reaction: 2 These ions would be combined with other anions such as AlO 2 − and OH − in discharge channels; these anions were obtained from the components of the electrolyte.
As a result of the thermal energy from the discharges, the magnesium hydroxide Mg(OH) 2 was converted to magnesium oxide (MgO) by the dehydration process in Eq. 10 67 .
MgO and MgAl 2 O 4 were the main phases formed during coating in the aluminate based electrolyte (Fig. 4). Duan et al. 68 also investigated magnesium coating in several electrolytes with different additives and observed various phases. Based on previous reactions, in the present case with and without TiO 2 , the pores arise at the sites of the discharge channels due to gas release (mainly O 2 and H 2 ) through the molten inorganic materials 27,69 . Moreover, some micro-cracks (Fig. 8a,b) were formed on coating surface due to thermal stress and high-energy discharge during the oxidation process. The incorporation mechanism of the particles into PEO coatings on the AZ31 Mg alloy was reported by Al Zoubi and coworkers 27 .
Under the strong electric field of PEO, the metal cations that were transferred from magnesium alloy to react with the anions to form a porous inorganic coating. It was well recognized that the second step in the AZ31 Mg alloy coating process was the adsorption of DEIP at the inorganic layer/solution interface and that the adsorption depends on the molecule's chemical composition, the temperature, and the electrochemical potential at the inorganic layer/solution interface. The presence of DEIP structure as organic coating would be confirmed by the FT-IR spectra data presented in Fig. 3, which showed the absorption bands of hydroxyl group in the region of 3361 cm −1 and the carbonyl group in the region 1706 cm −1 . Moreover, the EDS data also indicated that organic coating was present on the inorganic coating, which was confirmed by the XRD results (Fig. 4).
The growth mechanism of the organic coating during the immersion process was presented in Fig. 8c,d. The adsorption of the inhibitor on the coating surface would be influenced by several factors, including the chemical structure of the inhibitor, the distribution of charge over the entire inhibitor molecule (Fig. 8e,f) and the nature and charged surface of the inorganic coating 70 . The adsorption of DEIP on the coating surface occurs by several ways: (a) electrostatic interaction between the charged centres (Fig. 8e,f) of the molecules and the charged coating, (b) donor-acceptor interaction between unshared electron pairs (Fig. 8) in the molecule and the vacant d-orbital of the metal surface atoms, (c) donor-acceptor interaction between the π-electrons of the aromatic ring and the multiple bonds and vacant d-orbitals of the metal surface atoms (Fig. 8e,f and d) donor-acceptor interaction between the d-electrons of surface metal-atoms (Mg, Al and Ti) (Fig. 8f) and the empty antibonding molecular orbital of DEIP (retro-donation) 69 . It was particularly significant that the inhibition efficiency afforded by the organic compound may be attributed to the presence of electron rich O and aromatic rings. DEIP contains one aromatic ring as well as ester and hydroxyl groups. Thus, the possible reaction centres was unshared electron pairs of the heteroatoms and π-electrons of the aromatic ring. In general, in ethanolic solutions, the organic molecules exist either as neutral molecules (phenol) or in the form of protonated organic molecules (phenolate ion or phenoxide ion) (Fig. 8b).
Based on the proposed mechanism, the neutral organic compound might be adsorbed on the surface of the inorganic coating via the chemisorption mechanism (Fig. 8f), involving the displacement of water or ethanol molecules from the surface coating or metal (through the pores) (Eq. 1) and the sharing of electrons between the hetero-atoms and metals 71 . The adsorption of organic molecules from the ethanolic solution onto the coating surface containing TiO 2 proceeded without reaction products. The amount adsorbed increased steeply with an increase in the immersion time. Figure 8(c,d) shows the surface morphologies of the prepared inorganic coating after immersion in DEIP for 2 days. When the immersion time was increased to 2 days, the organic coating covered uniformly the inorganic coating containing TiO 2 . The facile formation of the organic coating after immersion in DEIP solution might be due to the presence of the TiO 2 particles and the porous inorganic coating. A comparison of the SEM images micrographs (Fig. 8) of the magnesium alloys in the presence of the corrosion inhibitor utilized in this study with those of the uninhibited surface confirmed that the inhibitor compound was adsorbed on the surface of the inorganic coating. The inorganic coating containing the TiO 2 particles offers the advantage is the formation of strong van der Waals bonds between the organic molecules and the inorganic coating surface. The TiO 2 particles in the inorganic coating increased the density, flexibility, and functional compatibility with the organic coating. However, the use of TiO 2 particles can improve the bonding to specific organic compounds (Fig. 8) in comparison to inorganic materials based on magnesium oxide and magnesium aluminates.

Conclusions
A novel comprehensive method was proposed in this study to develop the heterogeneous multi-layer which resulted from the growth of DEIP organic coating on top of inorganic coating by plasma electrolytic oxidation in the electrolyte containing TiO 2 particles. The empirical and theoretical finding presented in this study led to the following points: 1. During PEO, the inert incorporation of TiO 2 nanoparticles was useful enough to seal the micro-defects in the inorganic coating, giving rise to the improved corrosion resistance and the formation of organic coating. During DC, the physical bonds were generated over the entire inorganic coating, which significantly enhanced the growth of hybrid organic-inorganic coating. According to FT-IR spectra, hydroxyl group at a region of 3361 cm −1 in organic coating played a key role in determining chemical and physical adsorptions onto inorganic coating incorporating TiO 2 . 2. As to formation mechanism of hybrid organic-inorganic coatings, the organic compounds might be adsorbed on the surface of inorganic coating via chemisorption mechanism, involving the displacement of polar molecules from the surface coating and the electron transfer between the heteroatoms and inorganic coating. Based on quantum chemical prediction, the values of E HOMO , E LOMO , ∆N, electronegativity (X), and the dipole moment (µ) would support the experimental results, providing deep insight into the adhesion mechanism of hybrid organic-inorganic coatings. 3. The electrochemical analyses using potentiodynamic polarization and impedance spectroscopy tests in 3.5 wt% NaCl solution confirmed that excellent corrosion resistance would be attained by hybrid organic-inorganic coatings. The use of DEIP resulted in excellent efficiency to inhibit corrosion by preventing anodic magnesium dissolution as well as cathodic hydrogen evolution.

Materials and Methods
PEO coating. An AZ31 magnesium alloy plate comprising Al, Zn, Mn, Fe, and Si in ratios of 2.89, 0.96, 0.31, 0.15, and 0.12 wt.% (balance Mg) was cut into samples with dimensions of 20 mm (L) × 20 mm (W) × 4 mm (T) for use as the working electrode (anode) in these experiments. All samples were mechanically ground with SiC paper up to 1200 grit, rinsed with distilled water and cleaned ultrasonically with pure ethanol prior to PEO coating. The present samples were set as the anode and a stainless steel net was used as the cathode. A glass vessel was used as the electrolyte container, equipped with a magnetic stirrer and a water cooling system to maintain the electrolyte temperature around 288 K for stabilization of the electrochemical reactions throughout the process. The PEO coating treatments were performed for 5 min under an AC (alternative current) power supply (100 mAcm −2 ) with a frequency of 50 Hz. The following reagent-grade chemicals were used to prepare the electrolytes: potassium hydroxide (3 g L −1 KOH), sodium aluminate (8 g L −1 NaAlO 2 ), sodium tetraborate decahydrate (5 g L Na 2 B 4 O 7 .10H 2 O), titanium dioxide (5 g L −1 TiO 2 ), glycerol (6 g L −1 C 3 H 8 O 3 ) and hexamethylenetetramine (5 g L −1 (CH 2 ) 6 N 4 ) ( Table 6). For the electrolyte, the pH and electric conductivity were approximately ~13 and ~19 mScm −1 , respectively. All the chemicals used herein were purchased from Aldrich or Merck unless otherwise cited.
Dip-coating as post-treatment. For dip-coating with the organic compound (Table 6), the PEO-coated samples were immersed in an ethanolic solution of 1 M DEIP for 1 day and 2 days, respectively, at 298 K, with consecutive drying and air annealing in a muffle furnace at 373 K for 1 h.
Electrochemical assessment. To evaluate the corrosion behavior of the coating layers, potentiodynamic polarization measurements were carried out in a 3.5 wt.% NaCl solution at 25 °C using a three-electrode system with a ZAHNER Im6ex (Germany) electrochemical workstation. The electrochemical measurements were carried out in a potentiostat (Gamry Interface1000) with a three-electrode cell system. The PEO-coated sample was  Table 6. Composition of the solutions and the methods used for the inorganic and organic coatings.
used as the working electrode (WE), platinum (1 cm 2 area) was used as the reference electrode (SCE). The potentiodynamic polarization data were acquired in the range of −0.3 V to 0.4 V with respect to the open circuit potential (OCP) at scan rate of 1 mVs −1 and the EIS experiments were conducted from 10 6 to 0.1 Hz at an interval of 10points/decade with 10 mV rms. The corrosion current density (I corr ) and corrosion potential (E corr ) values were obtained using the Tafel extrapolation method, and the inhibition efficiency η (%) was calculated by using Eq. 11. where I corr 0 and I corr are the corrosion current densities in the absence and presence of the coating layer, respectively.
Quantum calculation. Hyper Chem-8 was a sophisticated molecular modeler, editor, and powerful computational package that was known for its quality, flexibility, and ease of use. This program combines 2D visualization and animation with quantum chemical calculations, molecular mechanics, and dynamics. In the present work, the parameterization method 3(PM3) was used for calculation of the heat of formation and binding energy for all metal complexes. PM3 was more widely recognized than other semi-empirical methods due to the availability of algorithms and greater accuracy compared with other methods 72 . It was parameterized primarily for organic molecules and selected metals.