{'fraction_non_alphanumeric': 0.03774143763543112, 'fraction_numerical': 0.02246402793583488, 'mean_word_length': 4.692935747248846, 'pattern_counts': {'":': 0, '<': 1, '<?xml version=': 0, '>': 1, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
EXAFS and XANES analysis of oxides at the nanoscale

This work presents a discussion of the possibilities offered by X-ray absorption spectroscopy (XAS) to study the local structure of nanomaterials. The current state of the art for the interpretation of extended X-ray absorption fine structure (EXAFS), including an advanced approach based on the use of classical molecular dynamics, is described and exemplified in the case of NiO nanoparticles. In addition, the limits and possibilities of X-ray absorption near-edge spectroscopy (XANES) in determining several effects associated with the nanocrystalline nature of materials are also discussed in connection with the development of ZnO-based dilute magnetic semiconductors and iron oxide nanoparticles.


Introduction
Nanomaterials are of fundamental and technological importance as they have fascinating physical and chemical properties which can be exploited for numerous applications (Gleiter, 1989(Gleiter, , 1995Ferná ndez-García et al., 2004;Goesmann & Feldmann, 2010). Since nanomaterial properties depend strongly on size and shape, a key requirement for understanding and controlling them is knowledge of the atomic structure. This is a challenging task, the solution of which requires a complex approach based on the use of different complementary experimental techniques (Rao & Biswas, 2009) and advanced computational methods (Billinge & Levin, 2005).
X-ray absorption spectroscopy (XAS) is one of the direct structural probes providing information on the local environment around a photoabsorber (Lee et al., 1981;Rehr & Albers, 2000;Aksenov et al., 2006;Yano & Yachandra, 2009;Li et al., 2010;Boscherini, 2013). XAS is an excellent tool for this purpose, because it can be applied equally successfully to both ordered and disordered materials. XAS is also elementselective, and is sensitive to high dilutions, and to length scales down to nanoparticles (NPs) and even molecules. XAS has gained in popularity during the past decade with progress in synchrotron radiation sources, which ensure a high quality of experimental data (Pettifer et al., 2007;Purans et al., 2008) and open new horizons for studies that are time-dependent (Oguz Er et al., 2012) or under extreme conditions (Di Cicco et al., 2011). The spatial resolution of XAS experiments has been pushed down to the nanoscale using nanofocused X-ray beams (Martínez-Criado et al., 2012, 2013, or by combining XAS with scanning probe microscopy (Larcheri et al., 2008) and scanning transmission X-ray microscopy (Guttmann et al., 2012).
The application of XAS to nanomaterials represents a rapidly growing field of research, and several review papers have been published on this topic in the last decade (Modrow, 2004;Frenkel et al., 2011;Mino et al., 2013). Despite the great deal of research performed to date, the problem of determining coordination numbers in nanocrystalline metals and oxides, an early problem in catalysis (Díaz-Moreno et al., 1997), still persists today, with papers both for and against the presence of highly disordered interfaces and grain boundary regions (Chadwick et al., 2003;Stern et al., 1995;Boscherini et al., 1998;Baker et al., 2009;Dubiel et al., 2000). Most research activities are concentrated on the analysis of a few nearest coordination shells around a photoabsorber and many of them are dedicated to metallic NPs, because the influence of undercoordinated atoms at the surface and the limited size of the NPs modify significantly the atomic structure and lattice dynamics of NPs, thus making reliable analysis of the XAS spectra a complicated task. Nevertheless, methods to characterize the structure of metallic NPs from an analysis of the nearest coordination shells and to determine the mean crystallite size have been proposed (Calvin et al., 2005;Frenkel, 2007). At the same time, in a recent detailed study of metal NPs (Agostini et al., 2014), the authors emphasized the need to use complementary techniques to extract reliable structural information. In particular, they showed that a combination of transmission electron microscopy (TEM), chemisorption measurements and extended X-ray absorption fine structure (EXAFS) analysis up to the fourth coordination shell, with Monte Carlo simulations, is required to account properly for the size distribution of metal NPs, which influences significantly the average values of the structural parameters (Agostini et al., 2014).
To date, the EXAFS region of the X-ray absorption spectrum has attracted most attention in the field. However, recent works have proposed that several effects associated with the change in size scale, such as the occurrence of charge-transfer effects under the influence of ligands or the existence and type of vacancies, can be probed from the study of the X-ray absorption near-edge spectroscopy (XANES) part of the spectrum (Ma et al., 2012;Ciatto et al., 2011).
In this paper, we will describe the present state of the art for the interpretation of EXAFS, including an advanced approach based on the use of classical molecular dynamics and its application to nickel oxide NPs. The limits and possibilities of XANES for determining several effects associated with the nanocrystalline nature of the materials will be discussed in connection with the development of ZnO-based dilute magnetic semiconductors (DMSs) and iron oxide NPs.

EXAFS spectroscopy of nanomaterials 2.1. EXAFS within the multiple-scattering approximation
The EXAFS l (k) past the absorption edge of orbital type l is defined as (Fig. 1) (Lee et al., 1981) where (E) is the experimentally measured X-ray absorption coefficient, b (E) is the background absorption and 0 (E) is the atomic-like absorption due to an isolated absorbing atom. The excited photoelectron wavenumber k is related to its energy E by k ¼ ½ð2m e =h -2 ÞðE À E 0 Þ 1=2 , where m e is the electron mass, his the Planck constant and E 0 is the threshold energy, i.e. the energy of a free electron with zero momentum. Within the multiple-scattering (MS) theory, the EXAFS l (k) can be decomposed into a series (Ruiz-Lopez et al., 1988;Brouder et al., 1989;Rehr & Albers, 2000) l ðkÞ ¼ X 1 n¼2 l n ðkÞ; l n ðkÞ ¼ where l n ðkÞ includes contributions from the (nÀ1)-order scattering processes of the excited photoelectron by the neighbouring atoms, before it returns to the photoabsorber. While the series is infinite, in many practical cases only the first few terms produce a significant contribution to the total EXAFS, due to the finite lifetime of the excitation, the scattering path lengths and cancellation effects.
Equation (2) can be rewritten in a more conventional way (Zabinsky et al., 1995;Rehr & Albers, 2000;Rehr et al., 2009)   Low-temperature (6 K) X-ray absorption spectrum of bulk NiO at the Ni K-edge (solid line). The background b (E) and atomic-like 0 (E) absorption contributions are shown by dash-dotted and dashed lines, respectively.
where S 2 0 is a many-body reduction factor accounting for amplitude damping due to multi-electron effects (intrinsic losses), N i is the degeneracy of the photoelectron scattering path, R i is the effective path half-length, f l eff ðk; RÞ is the photoelectron effective scattering amplitude for path i, ' l (k, R) is the phase shift function for path i, 2 l c ðkÞ is the final-state phase shift at the central (absorbing) atom and (k) is the energy-dependent mean free path of the photoelectron, which ranges from a few å ngströ ms to $10-20 Å (Fig. 2). Note that, in the case of single scattering processes, N i has the meaning of the coordination number and R i equals the radius of the i-th coordination shell.
The time-scale of the photoabsorption process is about 10 À15 -10 À16 s, which is significantly shorter than the characteristic time ($10 À13 s) of thermal vibrations. Therefore, the atoms may be considered as frozen at their instantaneous positions during a single excitation process, and the total EXAFS corresponds to the configurational average of all atomic positions. The effect of thermal disorder is conventionally introduced (Beni & Platzman, 1976) within the harmonic approximation, which adds an exponential term exp(À2 2 k 2 ) into equation (3), where 2 is the Debye-Waller factor or mean-square relative displacement (MSRD). This factor is responsible for the exponential damping of the EXAFS amplitude with increasing energy (wavenumber) and for its temperature dependence. It can be left as a free parameter during the EXAFS simulation or evaluated using semi-empirical correlated Einstein or Debye models (Sevillano et al., 1979;Beni & Platzman, 1976;Vaccari & Fornasini, 2006;Bunker, 2010), the equation-ofmotion method (Poiarkova & Rehr, 1999) or the more sophisticated first-principles lattice dynamics theory (Dimakis & Bunker, 1998;Vila et al., 2007). Finally, the anharmonic correction, required, for example, to describe the effect of thermal expansion on EXAFS (Eisenberger & Brown, 1979), can be treated within the cumulant expansion technique (Bunker, 1983;Dalba et al., 1993;Fujikawa & Miyanaga, 1993;Fornasini, 2001). The situation becomes non-trivial in the case of nanomaterials, since the relaxation of the atomic structure upon reduction of the NP size can significantly affect their phonon properties (Gouadec & Colomban, 2007). At the same time, relaxation of the structure and the presence of a surface lead to the appearance of many non-equivalent atomic sites, the number of which will increase even more in the presence of defects (vacancies, impurity atoms). For example, a decrease in the average coordination number and the average nearestneighbour distance, accompanied by an increase in static disorder, has been observed in rhodium NPs upon reducing their size . This fact makes it impractical to use equation (4) to analyse the full EXAFS signal from a nanomaterial, due to the very large number of fitting parameters required. To illustrate this problem, let us consider the case of bulk nickel oxide with a rock-salt cubic structure (Fig. 3). It is possible to calculate the total number of scattering paths, the number of unique paths due to the cubic symmetry and the maximum number of fitting parameters N par which can be used in the EXAFS model according to the Nyquist theorem [N par = 2ÁkÁR/ (Bordiga et al., 2013)], for a relatively long EXAFS signal with Ák = 20 Å À1 , as a function of radial distance R (cluster radius around the photoabsorber). As one can see, the Nyquist criterion is already not satisfied at R ' 5.5 Å in bulk nickel oxide, and this distance will be significantly reduced in a nanomaterial.
Also, one should point out that equation (4) accounts only for radial disorder, whereas the photoelectron effective scattering amplitude and phase shift functions show a nonlinear angular dependence and are sensitive even to small variations in angle along the scattering path, especially in the case of linear atomic chains (Teo, 1986;Kuzmin & Purans, 1993). This problem has been addressed in the past for small disorder using the low-order Taylor expansion for amplitude and phase of the EXAFS signal .

EXAFS from the nearest shells
The use of classical MD is limited by the simplicity of existing force-field models and is not applicable in situations where the electronic structure of a material leads to a strong local structure distortion such as, for example, in the case of the Jahn-Teller effect (Kunz & Brown, 1995). In this case, reliable EXAFS analysis is limited to the nearest environment but can still provide useful information on the relaxation of the local atomic structure in NPs.
Since high-order (n > 2) scatterings have long path lengths, they can be isolated in real space using the Fourier filtering procedure, and thus the contribution from the nearest atoms containing only single-scattering (n = 2) processes can be singled out and analysed separately. This is the most widely used approach to EXAFS analysis, for which the exact analytical expression has been obtained in the past within the curved-wave formalism (Ashley & Doniach, 1975;Lee & Pendry, 1975).
In the harmonic approximation for thermal motion, singlescattering EXAFS is given by equation (4), whereas in the case of weak disorder it can be parameterized using the cumulant decomposition (Bunker, 1983;Dalba et al., 1993;Fornasini, 2001) as where C 3i , C 4i , C 5i and C 6i are cumulants of a distribution, taking into account anharmonic effects and/or non-Gaussian disorder, and f l (, k, R i ) and ' l (, k, R i ) are the backscattering amplitude of the photoelectron due to the atoms of i-th coordination shell. When the first coordination shell around the photoabsorber is strongly distorted, the cumulant series will not converge. In this case, one should use the EXAFS formula as expressed in terms of the radial distribution function (RDF) GðRÞ (Lee et al., 1981), Here, G(R) corresponds to the number of atoms located in the spherical shell around the photoabsorber between R and R + dR, so that the number N of atoms located in the region between R min and R max is given by the integral N ¼ R R max R min GðRÞ dR. To determine the RDF G(R), the regularization technique Ershov et al., 1981;Kuzmin & Purans, 2000) can be used to solve the integral of equation (6) as an ill-posed problem (Bakushinsky & Goncharsky, 1994). Recent applications of this method to study the local structure in nanosized tungstates (NiWO 4 , CoWO 4 , CuWO 4 , ZnWO 4 ) can be found in Kalinko & Kuzmin (2011) and Anspoks, Kalinko, Timoshenko & Kuzmin (2014).

Structure relaxation and disorder in nanosized NiO
The use of classical MD simulations for the interpretation of EXAFS (the MD-EXAFS method) in nanomaterials will be discussed below for the example of Ni K-edge EXAFS in nanosized nickel oxide (nano-NiO) (Anspoks et al., 2010(Anspoks et al., , 2012Anspoks & Kuzmin, 2011;Anspoks, Kalinko, Kalendarev & Kuzmin, 2014).
The general scheme of the MD-EXAFS method is shown in Fig. 4. First, one needs to define the structural model of the material, i.e. the NP chemical composition, shape and size, and to specify the force-field model describing all interactions between atoms. The starting set of force-field parameters can be obtained from their fit to the properties (e.g. structure, elastic constants, bulk modulus, phonons) of the nanomaterial bulk counterpart or to a potential energy surface obtained from first-principles calculations (Gale, 1996). For the next step, the MD simulation is performed using the NVT or NPT ensemble (Abraham, 1986) for the required temperature and feature articles pressure conditions of the EXAFS experiment. At this point, one should take care that the simulation temperature is high enough (near and above the material's Debye temperature) (Turney et al., 2009) so that quantum effects can be neglected and classical dynamics is expected to be highly valid. As a result of the MD simulation, a set of instantaneous atomic configurations ('snapshots' of the structure) is obtained. These are used to calculate the partial RDFs, with the aim of determining structural parameters such as coordination numbers, interatomic distances and MSRDs for the nearest coordination shells. The values of the structural parameters thus obtained are compared with those determined from conventional analysis of EXAFS, and the agreement between the two sets of data is used as a criterion for adjustment of the force-field model. Such an approach allows one to exclude the unreliable evolution of the nanomaterial structure during the MD run and to reduce the number of time-consuming EXAFS calculations to be performed in the next step. Finally, the configuration-averaged EXAFS l ca ðkÞ = h l (k)i is calculated for a set of snapshots of instant atomic positions generated by MD simulation. This is done by averaging the EXAFS spectra, evaluated by equation (2) for each snapshot independently, over all photoabsorbers in the NP and over the MD simulation time. The calculation of each EXAFS signal can be performed using an ab initio multiple-scattering program [e.g. FEFF (Ankudinov et al., 1998;Rehr et al., 2010), GNXAS (Filipponi & Di Cicco, 2000) or DL EXCURV (Tomić et al., 2005;Gurman et al., 1984Gurman et al., , 1986], and the convergence of the configuration-averaged EXAFS should be controlled in each case. The agreement between the calculated and experimental EXAFS is used as a criterion to select the best structural model of the NP. The advantage of this methodology is that a small number of free parameters are used in the NP model, which are optimized to reproduce the experimental EXAFS, taking into account most or even all multiple-scattering contributions and disorder (thermal and static) effects within the large real-space range.
In the MD-EXAFS method (  , the force-field model, which is required to describe the interatomic interactions in nano-NiO, is relatively simple and includes only three free parameters (nanoparticle size L, concentration of nickel vacancies C vac and effective charge of nickel Z Ni ions), other parameters being optimized and fixed at the values for bulk nickel oxide.
Nanocrystalline NiO has the rock-salt structure and is an important technological material used in catalysis, electrochromic devices, gas sensors, resistive and magnetoresistive memory, giant magnetoresistive (GMR) spin valve structures, rechargeable batteries and fuel cells. The performance of all these devices relies largely on the oxide stoichiometry. It is known that NiO is a p-type semiconductor, usually having an oxygen excess due to the presence of nickel vacancies (V Ni ) (Sato et al., 1993;Kohmoto et al., 2001;Yu et al., 2012), which strongly influences its electrical (Jang et al., 2009) and magnetic (Mandal et al., 2009) properties and structural stability (Jang et al., 2011).
Upon reduction of the crystallite size, the number of undercoordinated atoms located at the surface of the crystallites increases relative to those in the bulk, thus leading to a decrease in the average coordination number (Fig. 5). Moreover, a bond contraction for under-coordinated atoms at sites surrounding a defect or at the surface of the NP is expected within the bond-order-length-strength (BOLS) correlation mechanism (Sun, 2007), and should result in an average unitcell volume compression, commonly observed in metallic NPs (Sun, 2007). However, a volume expansion has been found in many nanocrystalline metal oxides, for example CeO 2Àx (Tsunekawa et al., 1999), MgO and -Fe 2 O 3 (Fukuhara, 2003), CaWO 4 , BaTiO 3 (Huang et al., 2007), CuO (Bianchi et al., 2008) and rutile TiO 2 (Kuznetsov et al., 2009). Such behaviour is well documented in nano-NiO by X-ray diffraction experiments (Li et al., 2006;Ghosh et al., 2006;Zheng et al., 2008;Makhlouf et al., 2009) Dependence of the average coordination number for the nearestneighbour (NN) Ni-Ni 2 (second shell) and next-nearest-neighbour (NNN) Ni-Ni 4 (fourth shell) atom pairs on the cubic NiO particle size.

Figure 4
Scheme of the MD-EXAFS calculations.
EXAFS spectroscopy has been used to study local structure in nickel oxide for a long time. Most works have been dedicated to an investigation of NiO thin films (Kuzmin et al., 1997;Avendañ o et al., 2005;Jang et al., 2009Jang et al., , 2011Gutié rrez et al., 2013;Anspoks, Kalinko, Kalendarev & Kuzmin, 2014;Domínguez-Cañ izares et al., 2014), NiO monolayers on Ag(001) Groppo et al., 2003Groppo et al., , 2004Lamberti et al., 2003;Luches, Groppo et al., 2004;Lamberti, 2004) and NPs (Hattori et al., 2002;Meneses et al., 2007;Mandal et al., 2009;Anspoks et al., 2010Anspoks et al., , 2012Anspoks & Kuzmin, 2011). One can also mention the work that has been done on ultrathin MgO epilayers on Ag(001) , which have a rock-salt crystal structure similar to NiO and thus a closely related behaviour of the EXAFS signal. A comparison of the Fourier transforms of Ni K-edge EXAFS for bulk and nanosized NiO is shown in Fig. 7. The effect of size reduction is clearly observed as a progressive decrease in peak amplitude upon increasing distance. However, even in the nanosized oxide, the structural peaks are well visible up to $6 Å , thus making the use of the MD-EXAFS approach feasible. A more detailed analysis of the first two peaks due to the first two coordination shells (Ni-O 1 and Ni-Ni 2 ) indicates that, in the nanosized oxide, the R(Ni-Ni 2 ) distance increases slightly, whereas the R(Ni-O 1 ) distance contracts (Anspoks et al., 2012;Anspoks, Kalinko, Kalendarev & Kuzmin, 2014). Such a result is not trivial, since in bulk NiO the two distances are proportional: R(Ni-Ni 2 ) = R(Ni-O 1 )(2 1/2 ). In addition, it was found that, while the temperature dependence of the MSRD for the Ni-O 1 and Ni-Ni 2 atom pairs is close and can be described by the correlated Debye model, there is some additional static disorder ( st ) 2 in nanosized NiO (Anspoks et al., 2012;Anspoks, Kalinko, Kalendarev & Kuzmin, 2014) (Fig. 8). These findings favour the presence of nickel vacancies within the volume of NPs.
The full EXAFS spectrum for NiO NPs has been simulated by Anspoks et al. (2012) using the MD-EXAFS method, starting from the force-field model optimized for bulk NiO by Fisher (2004). The model includes two-body central force interactions between atoms i and j, described by the sum of the Buckingham and Coulomb potentials The Buckingham potential parameters A, and C were fixed to the values found for bulk NiO (Fisher, 2004;Anspoks et al., 2010), whereas the charge on the nickel atoms Z Ni was used as a free parameter to minimize the residual between the experimental and configuration-averaged EXAFS spectra. The simulations were performed at T = 300 K in the canonical ensemble (NVT) using cubic-shaped particles of size L Â L Â L placed in a large empty box. Nickel vacancies were generated feature articles 576 Kuzmin  Dependence of the unit-cell volume on NP size. Data are taken from XRD studies, solid circles from Li et al. (2006), empty circles from Ghosh et al. (2006), the empty square from Zheng et al. (2008) and solid triangles from Makhlouf et al. (2009)). The inset shows the NP model with a size L = 2.5 nm.

Figure 7
k 2 -weighted phase-uncorrected Fourier transforms (FTs) of the lowtemperature (T = 6 K) Ni K-edge EXAFS spectra in bulk and nanosized NiO (Anspoks et al., 2012). Both the magnitude and the imaginary parts of the FTs are shown.

Figure 8
Temperature dependence of the mean-square relative displacements An example of the MD-EXAFS simulations for bulk NiO and nanosized NiO (L = 1.3-2.1 nm, C vac = 1.6-2.0%, Z Ni = 1.925) is shown in Fig. 9. Here, the configuration-averaged Ni K-edge EXAFS spectra were calculated using the program FEFF8 (Ankudinov et al., 1998), employing a complex exchange and correlation Hedin-Lundqvist potential to account for inelastic effects. As one can see, the MD-EXAFS approach allows one to obtain a good agreement between theory and experiment in both k-and R-space, taking into account a reasonable NP model, multiple-scattering contributions and thermal and static disorder within a rather simple force-field model. Thus, the method provides a reliable analysis of the nearest and outer coordination shells in a nanomaterial. It can be also used for the development and validation of theoretical models based on experimental EXAFS data.
The weak point of the MD-EXAFS method based on classical MD is the need to have a reliable force-field model and the neglect of quantum effects. As a result, the method cannot be used at low temperatures and will fail to describe the local structure distortion due to electronic effects such as, for instance, in noncentrosymmetric oxides (Halasyamani & Poeppelmeier, 1998). One can improve the reliability of the method by employing potentially more accurate but computationally much more heavy ab initio MD simulations (Spezia et al., 2006;Pham et al., 2010;Yancey et al., 2013). While such an approach allows parameter-free analysis of experimental EXAFS data, also in this case the ability of the method to provide accurate values of the structural parameters will depend on the approximations used, in particular on the type of density functional theory functional (Kalinko et al., 2009;Kuzmin et al., 2013).

XANES and stoichiometry: the case of Fe 3 O 4 nanoparticles
Magnetic NPs are nowadays the subject of extensive research because of their promising applications in many technological areas (Tartaj, 2006). The possibility of using NPs as nanodiagnostic or nanotherapeutic tools means they attract great interest in the biomedical field (Berry & Curtis, 2003). In particular, iron oxide, in the form of magnetite (Fe 3 O 4 ) and/or maghemite (-Fe 2 O 3 ), has been revealed as an ideal material because of its biocompatibility and easy removal from the body after use following natural routes (Gutié rrez et al., 2006). The structural and physicochemical properties of the NPs determine to a great extent their biofunctionality, since these properties are associated with the average particle size, size distribution, shape, crystal order, surface properties and the presence of bonded molecules at the surface. Similarly, their magnetic properties depend on different parameters, such as the degree of structural order at the surface and inside the particles (Morales et al., 1999). Consequently, obtaining a precise characterization of these structural details in monodisperse nanocrystals is a fundamental step to obtaining an accurate relationship with their magnetic properties. This is of particular relevance in the case of monodisperse iron oxide nanocrystals. The great deal of information accumulated to date on the characterization of magnetite and maghemite NPs does not clarify whether the synthesized materials are single-or multiphase systems involving bulk-like oxides (Fe 3 O 4 , -Fe 2 O 3 , -Fe 2 O 3 , . . . ), or multiphase entities formed by non-stoichiometric oxides (Demortiere et al., 2011). In addition, there are some indications that magnetite and maghemite NPs may show structural disorder that can substantially modify the properties of the materials and, consequently, they cannot simply be considered as small pieces of bulk material. Moreover, the existence of several  polymorphs and their possible transformation through oxidation further complicates this problem.
These uncertainties make clear that the standard methods currently available for solving the atomic structure of bulk crystals fail in this case, and more powerful experimental tools are needed to obtain an accurate structural and magnetic characterization of these iron oxide NPs. In this way, XAS (Sayers & Bunker, 1988;Bunker, 2010) and X-ray magnetic circular dichroism (XMCD) (van der Laan et al., 1986;Schü tz et al., 1987;Stö hr, 1999;Funk et al., 2005;Chen et al., 1993;Laguna-Marco et al., 2005, 2009) tools have received great attention in recent years. In principle, the study of the Fe L 2,3 -edge XAS spectra in Fe oxides may provide information about the oxidation state and, in some cases, allow one to separate the contributions of the magnetic moments of Fe ions in tetrahedral and octahedral sites (van Aken & Liebscher, 2002;van der Laan & Kirkman, 1992;Crocombette et al., 1995). More recently, Fe L 2,3 -edge XMCD has also been at the centre of many of the characterization studies of nominal magnetite NPs (Park et al., 2004;Goering et al., 2006;Huang et al., 2004;Yamasaki et al., 2009). However, the most common iron oxides exhibit similar Fe L 2,3 XAS and XMCD spectra because they are mainly governed by the point symmetry at the absorbing site (octahedral and tetrahedral in this case). This is illustrated in Fig. 10, where the XAS and XMCD spectra of a reference bulk material and of 9 nm Fe 3 O 4 NPs are compared (Piquer et al., 2014).
Recent XMCD studies suggest the simultaneous presence of both magnetite and maghemite in nominally magnetite NPs (Pé rez et al., 2009), indicating the difficulty of obtaining pure stoichiometric magnetite for particle sizes below a few tens of nanometres. Indeed, several authors suggested that magnetite and maghemite form a mixture of the form (-Fe 2 O 3 ) 1Àx - (Fe 3 O 4 ) x , in such a way that maghemite is the dominant phase of the small 5 nm iron oxide nanocrystals, whereas the proportion of the magnetite component increases gradually as the particle size does (Park et al., 2004). Unfortunately, the intrinsic limitations of Fe L 2,3 XAS and XMCD do not make it possible to determine whether this mixture corresponds to a multiphase Fe 3 O 4 + -Fe 2 O 3 system, in which each component retains its bulk properties; a core-shell arrangement consisting of a magnetite core while the surface is partially oxidized (Demortiere et al., 2011;Santoyo Salazar et al., 2011); or a nonstoichiometric phase whose magnetic properties cannot be simply derived from the values of bulk Fe 3 O 4 and/or -Fe 2 O 3 (Piquer et al., 2014).
This uncertainty in phase determination prevents one from establishing a definitive correlation between the magnetic properties and nanostructure details of iron oxide NPs and, consequently, a different approach is needed to determine the structure of Fe oxide NPs. Fe K-edge XAS can meet this objective because the Fe K-edge spectral shape is more sensitive to the geometric details of the absorbing site (overall symmetry, distances and bond angles) than the Fe L 2,3 -edge absorption (Wilke et al., 2001;O'Day et al., 2004;Berry et al., 2010;Corrias et al., 2000). In addition, the chemical shift associated with the change in Fe ion oxidation state and site geometry for Fe 3+ and Fe 2+ species is in the range $3-4 eV, which is easily detected experimentally (Waychunas et al., 1983;Benfatto et al., 2002;Okudera et al., 2012;Espinosa et al., 2012). Moreover, while the Fe L 2,3 absorption probes only the surface of the NPs [the probing depth in total electron yield (TEY) detection mode is $45 Å in Fe oxides; Gota et al., 2000], the Fe K-edge absorption probes the whole nanoparticle (Pellegrin et al., 1999) and, consequently, it is possible to determine the relative amounts of the different oxide phases, if present, in the material. Fig. 11 shows the Fe K-edge XANES spectra of several iron oxide bulk reference samples. In contrast with the L 2,3 -edge case, the spectral shape is clearly different for all the reference samples considered, reflecting the sensitivity of the Fe K-edge absorption to the geometric details of the absorbing site. In particular, magnetite and maghemite show quite different XANES spectra, not only regarding the overall spectral shape but also concerning the edge position, reflecting the different Fe-O bond lengths (Bunker, 2010;Chaboy, 2009). In a recent paper (Piquer et al., 2014), an Fe K-edge XANES study was reported for a series of nominally Fe 3 O 4 NPs obtained by different synthesis methods, with sizes in the range 4-30 nm. It was found that, irrespective of the sample synthesis method, none of the studied NPs displayed the characteristic XANES profile of bulk magnetite, and neither can the experimental spectra be accounted for as a linear combination of bulk oxide reference samples (Piquer et al., 2014). This is illustrated in the feature articles 578 Kuzmin   This result suggests the inadequacy of considering NPs as bulk-based materials, i.e. that stoichiometric bulk-like oxides can grow and coexist separately in the confined space of an NP. Moreover, the fact that the XANES spectra remain basically invariable for NPs of different sizes (Piquer et al., 2014) implies that the local structural arrangement of Fe does not depend on the NP size, as expected for a core/shell scheme, but supports the existence of a single non-stoichiometric phase where the formed Fe oxide grows in a single-crystal structure with a cell parameter lying in between those of the pure stoichiometric magnetite and maghemite oxides. If this were the case then not only the structural arrangements at the Fe sites but also the distribution of the Fe 2+ and Fe 3+ ions, including vacancies, would depart slightly from those of bulk Fe 3 O 4 and -Fe 2 O 3 stoichiometric iron oxides. With the aim of verifying this, Piquer and co-workers performed an ab initio calculation of the Fe K-edge XANES spectra for Fe 3 O 4 and -Fe 2 O 3 clusters in which the cell parameter had been progressively modified to reach 8.364 Å , i.e. the average of those of the pure magnetite and maghemite compounds (Piquer et al., 2014).
The modification of the cell parameter leads to an overall shift of the spectra without changing the spectral shape. When decreasing the cell parameter of Fe 3 O 4 , i.e. the Fe-O interatomic distance, the main absorption peak shifts to higher energies, while the opposite occurs for -Fe 2 O 3 in which the cell parameter is being increased. As a result, when the computation is performed for both magnetite and maghemite clusters by imposing the same (averaged) cell parameter, the main peak lies in the middle between those of the unmodified clusters, resembling the experimental findings (Piquer et al., 2014). The good agreement between the experimental and theoretical spectra strongly supports the theory that Fe oxide grows in NPs as a single spinel structure, the structural parameters and Fe 2+ /Fe 3+ ratio of which differ from those of bulk magnetite and maghemite.
Taking advantage of the results of the theoretical computations, a similar procedure has been applied to the experimental spectra by weighting the XANES spectra of the bulk magnetite and maghemite reference samples but shifting their energy scale prior to addition, i.e. simulating to some extent their expected variation upon modification of the structural parameters. (Because the Fe 2+ /Fe 3+ ratio and vacancy distribution are unknown a priori, the calculations were performed by modifying the cell parameter of both magnetite and maghemite to take into account the different structural environment associated with both Fe 2+ and Fe 3+ ions in the spinel structure.) A comparison with the experimental spectra, reported in Fig. 12, shows excellent agreement between the experimental and calculated spectra. In the case of the smaller samples (' < 9 nm), the best fit is obtained by applying ÁE = 1.5 eV for the magnetite reference spectrum and ÁE = À0.5 eV for the maghemite one, which agrees with the fact that the experimental edge position (and consequently the bond length) is closer to maghemite, whereas in the case of the larger samples (' ! 9 nm) good agreement is obtained by a 50% weighting of the Fe 3 O 4 and -Fe 2 O 3 after shifting them by ÁE = AE0.75 or AE1 eV, i.e. intermediate between those of the magnetite and maghemite bulk reference samples.
All in all, these results indicate that the Fe L 2,3 -edge absorption alone is not able to determine the structure of nanosized magnetite NPs. While the Fe L 2,3 -edge absorption is dictated by the valence and point symmetry of the absorbing sites, the overall line shape of all the iron oxides is similar, making it complicated to identify the relative amounts of the Comparison of the experimental Fe K-edge XANES spectra of several iron oxide bulk reference samples [from Piquer et al. (2013)]. In the inset, the experimental XANES spectrum of 7 nm Fe 3 O 4 NPs (M7) is compared with the weighted addition of the spectra of bulk magnetite and maghemite reference samples. oxide phases present in the material. In contrast, the Fe K-edge spectral shape is clearly different for all the reference samples considered, reflecting the high sensitivity of the Fe K-edge absorption to the geometric details of the absorbing site.

Figure 12
Study of the XAS data recorded on a series of nominally Fe 3 O 4 NPs with sizes in the range 4-30 nm indicates that none of the synthesized NPs can be identified as a mixture of stoichiometric bulk-like iron oxides, independently of the sample synthesis method. The experimental spectra are not well reproduced by any linear combination of the absorption spectra of Fe 3 O 4 and -Fe 2 O 3 bulk reference samples, even taking into account other oxides such as goethite or ferrihydrite. The failure of this hypothesis reflects the inadequacy of considering NPs as bulk-based materials, i.e. that stoichiometric bulk-like oxides can grow and coexist separately in the confined space of an NP. Moreover, analysis of the Fe K-edge spectra indicates that the local structural arrangement of Fe does not depend on the NP size as expected for a core/shell scheme. On the contrary, these results indicate that the synthesis of Fe 3 O 4 magnetite NPs leads to the growth of a single-phase non-stoichiometric oxide, the crystal structure of which possesses a cell parameter lying in between those of the pure stoichiometric magnetite and maghemite oxides. All these results suggest that a single phase develops inside the NPs during the synthesis process and that its structural details are mainly determined by steric effects; that is, the partial oxidation of the nominal magnetite NPs comes mainly from a greater disorder in the octahedral sub-network, allowing the appearance of vacancies at the spinel octahedral sites. This disorder, caused by size constraints, leads to the modification of the structural arrangements at the Fe sites with respect to those found in bulk-like iron oxides. This new intermediate phase can be seen as a mixture of 'structurally adapted' magnetite and maghemite oxides, in such a way that magnetite and maghemite rearrange their crystallographic structures in order to obtain the same crystal cell parameter. It is thus the size of the NPs which determines the variation in the cell parameter and the distribution of vacancies.

The role of vacancies in XANES: the case of ZnO-based DMSs
The second example concerns the detection of vacancies using XANES. We shall discuss this in connection with the development of oxide-based dilute magnetic semiconductors (DMS), i.e. semiconductors containing a small amount of magnetic impurities and showing high-temperature ferromagnetism (HTFM) (Ohno, 1998;Dietl et al., 2000;Sato & Katayama-Yoshida, 2001;Matsumoto et al., 2001). The origin of this HTFM remains controversial and several authors have proposed that it is caused by defects such as oxygen and zinc vacancies, as well as hydrogen, oxygen and zinc interstitials (Sanchez et al., 2008;Gallego et al., 2005;Liu & Jiang, 2010;Hong et al., 2007;Wang et al., 2008;Patterson, 2006). In this respect, XAS has been applied with the aim of determining the exact type of defect that causes HTFM in these systems.
However, based on similar experimental spectra, different authors report opposing conclusions regarding the nature of defects involved in the observed HTFM. Hsu et al. (2006) have concluded that oxygen vacancies enhance room-temperature ferromagnetism in Co-doped ZnO films while, on the contrary, Yan et al. (2007) concluded that Zn vacancies induce roomtemperature ferromagnetism in Mn-doped ZnO. This scenario is further complicated by the results of Zhang et al. (2010), who concluded from similar data that the aforesaid oxygen vacancies are located in the second shell around the magnetic ions.
The fact that the analysis of similar experimental spectra leads to opposing conclusions (Hsu et al., 2006;Yan et al., 2007;Zhang et al., 2010) poses a question about the reliability of these assignments, as well as of the capability of XAS itself to determine the presence of vacancies in the materials under study and, consequently, to shed light on the origin of magnetism in these systems. Indeed, the determination of the presence of vacancies from XANES spectra is not an easy task. It should be noted that the conclusions reported previously were derived from the occurrence of subtle changes in the intensity of different spectral features through fingerprint comparisons of ab initio computations and experimental data. Consequently, a convincing demonstration of the influence of vacancies on XANES spectra, beyond qualitative fingerprint analysis, is still missing.
With this in mind, Guglieri et al.  Fig. 13, being similar to those previously reported from which several authors concluded the existence of either oxygen or zinc vacancies (Hsu et al., 2006;Yan et al., 2007;Zhang et al., 2010). However, the near-edge region of the spectra varies with the sputtering gas used, as do their magnetic properties feature articles 580 Kuzmin (Cé spedes et al., 2010;Cé spedes, 2009). Therefore, Guglieri and co-workers explored whether these differences can be assigned to the presence of vacancies or, on the contrary, if they are associated with different Mn short-range structural order in the lattice, as was proposed in similar ZnMnO systems (Cé spedes et al., 2007(Cé spedes et al., , 2008. To this end, several theoretical calculations were performed by imposing the presence of both oxygen and zinc vacancies in the first coordination shells of the photoabsorbing atom (Guglieri et al., 2011). The computations were carried out using the multiple-scattering program CONTINUUM (Natoli et al., 1980), included in the MXAN program package (Benfatto & Della Longa, 2001). A complete discussion of the procedure can be found elsewhere (Chaboy & Quartieri, 1995;Chaboy, 2009;Chaboy et al., 2005). The calculations have been done, at both the Zn K-edge and the Mn K-edge, for a ZnO cluster including the contributions for atoms within the first 8 Å around the photoabsorber. In all cases, the interatomic distances were kept fixed as in the undoped wurtzite ZnO (w-ZnO). The Mn K-edge spectra were calculated by simply substituting Mn with Zn at the photoabsorbing site (Guglieri et al., 2011).
As shown in Fig. 14, the presence of a single oxygen vacancy in the tetrahedron surrounding Zn(Mn) affects the whole spectral shape, i.e. the relative intensity of all the spectral features is modified. This is the expected result (Kuzmin et al., 2007), contrary to previous reports (Hsu et al., 2006), because the oxygen vacancy affects not only the single scattering process in the first coordination shell of Zn but also many of the multiple scattering paths contributing to XANES. Including further oxygen vacancies in the next-neighbouring tetrahedron enhances these differences, whereas the inclusion of Zn vacancies in the second coordination shell does not significantly modify the spectral shape (Guglieri et al., 2011).
It has previously been reported that, upon removing one O atom from the first coordination shell, a new peak appears in the pre-edge region, and its intensity becomes more pronounced if a second oxygen vacancy is created in the second oxygen coordination shell (Hsu et al., 2006). Beyond the lack of agreement with the calculations above, this model is not reliable as it considers an ad hoc arrangement of vacancies. If the oxygen vacancies are randomly distributed, the probability of photoabsorbing Zn(Mn) having n vacancies in the first coordination shell can be calculated by a simple binomial distribution as PðnÞ ¼ 4 n À Á x n ð1 À xÞ 4Àn , where x is the concentration of oxygen vacancies. Accordingly, the Zn(Mn) K-edge XANES spectrum should correspond to the addition of spectra with and without oxygen vacancies around the photoabsorbing Zn atom, weighted according to this probability. As shown in Fig. 14 in the case of the Mn K-edge, the effects induced by the presence of oxygen vacancies are undetectable for defect concentrations of up to 50%.
These results indicate that the existence of both oxygen and Zn vacancies in Mn:ZnO films has little influence on the absorption spectra recorded at either the Zn or Mn K-edge. Indeed, the theoretical computations presented here indicate that, if a reliable concentration of defects, randomly distrib-uted, is taken into account, the effect of vacancies on the XANES spectra is negligible. Consequently, these results suggest that the disagreement between the theoretical computations and the Mn K-edge of the Zn 0.95 Mn 0.05 O thin film in the wurtzite structure is not due to the presence of vacancies. In this situation, structural modifications induced by the Mn substitution at the Zn site appear to be the best explanation to account for the disagreement between the theoretical and experimental spectra (Cé spedes, 2009;Smolentsev et al., 2007).
The computations above were performed by considering that Mn substitutes for Zn in the w-ZnO structure without modifying the interatomic distances. In this structure the nearest-neighbour interatomic distance is R Zn-O = 1.97 Å , while R Mn-O = 2.22 Å in MnO. Therefore, it seems reasonable to think that, on entering the w-ZnO structure, Mn adapts the original ZnO 4 tetrahedron by enlarging the R Mn-O distances. To verify this hypothesis, Guglieri et al.  framework and, in addition, by progressively increasing the interatomic R Mn-O distance in the nearest-neighbour shell of Mn (MnO 4 tetrahedron) from 1.97 Å , w-ZnO-like, to 2.22 Å , as in MnO. As shown in Fig. 15, the computation performed considering R Mn-O = 2.03 Å yields a good reproduction of the experimental spectrum, especially regarding the broad resonance C, $20 eV above the edge, and the intensity ratio between this resonance and the white-line (peak B). Moreover, the computation exhibits a shift towards lower energies of the edge position, as expected because R Mn-O increases (Chaboy, 2009), and the structure at the rising edge is enhanced slightly with respect to the computation in which Mn simply substitutes for Zn without modifying the interatomic distances. Finally, it was also checked in this case that adding an oxygen vacancy in the first coordination shell of Mn has no effect on the calculated spectrum. This behaviour is in agreement with the modification observed in the XANES spectrum of the Zn 0.95 Mn 0.05 O thin films prepared using different sputtering gases (see Fig. 13). These results are in agreement with those of Smolentsev et al. (2009) which showed that slight changes in the structural parameters of Mn:ZnO films have a profound influence on the characteristics of photoelectron scattering in the vicinity of Mn. This indicates that the variation in the reported HTFM in Ar-Zn 0.95 Mn 0.05 O and Ar/N 2 -Zn 0.95 Mn 0.05 O samples, where the ferromagnetic response is diminished when using Ar/N 2 , is mainly associated with dissimilar Mn local structures in the two samples.
Concluding, the XANES results obtained in the study of Zn 0.95 Mn 0.05 O thin films prepared with different sputtering gases and presenting room-temperature ferromagnetic behaviour indicate, on the one hand, that Mn substitutes for Zn in the wurtzite structure. However, contrary to previous claims, the results of comparisons between the experimental and theoretical spectra indicate that, by assuming a reliable defect concentration randomly distributed, the presence of neither oxygen nor zinc vacancies is detectable in the XANES spectra. Indeed, the theoretical computations presented here indicate that Mn adapts its local environment by increasing the Mn-O interatomic distance with the nearest-neighbour oxygen atoms. This modification is slightly different for Zn 0.95 Mn 0.05 O thin films prepared with different sputtering gases, which suggests that the different magnetic behaviour observed for the different samples is related to the different local structure of Mn in the films.

XANES and charge-transfer effects: the case of ZnO nanoparticles
Finally, we wish to discuss the possibility of using XANES to detect charge-transfer effects at the surface and/or interface of new tailored nanomaterials. Very often, experimental support for these effects is derived from modifications to the XANES spectra. In this way, early work by García et al. (2007) reported the occurrence of room-temperature ferromagnetism in ZnO NPs capped with different organic molecules. The study of the Zn K-edge XANES spectra showed modification of the near-edge region and, in particular, of the white-line (see peak B in Fig. 15) intensity as a function of the organic molecule used. The strongest modification of the spectral profile of bulk ZnO was found in the case of NPs capped with dodecanethiol, i.e. when the molecule bonds to the particle surface through an S atom. These results were interpreted as reflecting the alteration of the electronic configuration of the ZnO system due to charge-transfer effects between Zn and S, making a parallel with the charge-transfer model used to account for the peculiar magnetic behaviour of thiol-capped Au NPs (Crespo et al., 2004;Yamamoto et al., 2004). Similarly, Chen et al. (2012) have interpreted the observed modifications of the O K-edge XANES spectra of Al-doped ZnO NPs as being due to charge-transfer effects of Zn and Al.
However, a common characteristic of the works proposing the existence of charge-transfer effects in these ZnO-based systems from the analysis of XANES is the fact that they do not consider at all the influence of possible structural modifications due to the capping or doping of the ZnO NPs. Contrary to the case of the huge white lines found in the L 2,3edges of lanthanides and 5d metals associated with the well localized 5d states (Qi et al., 1987;, the delocalized character of the final p-states probed in K-edge absorption prevents the establishment of a direct relationship between spectroscopic intensity and the density of states and/ or hole-count changes (Laguna-Marco et al., 2008;Chaboy et al., 2007). In addition, the XANES region of the absorption spectrum is highly sensitive to the bonding geometry and the details of the white line are also determined by the interatomic distances (the shorter the distance the broader the white line) (Bunker, 2010). Consequently, special attention will be paid to identify the variation in white-line intensity with chargetransfer effects.
To illustrate this we present in the following the Zn K-edge XANES study of $20 nm ZnO NPs capped with three different organic molecules: tryoctylphosphine (Topo), dodecylamine (Amine), and dodecanethiol (Thiol), which bond to the particle surface through an O, N and S atom, respectively. As shown in Fig. 16, in the case of the uncapped ZnO samples the Zn K-edge spectrum is characterized by a main absorption peak (B) and a positive spectral feature (D 1 ) with a double shoulder-like structure at higher energies (D 2 , D 3 ). This spectroscopic profile is retained in the case of ZnO NPs capped with Amine and Topo. In contrast, the intensity of the main absorption line of the ZnO sample capped with Thiol shows a strong reduction, as previously reported (García et al., 2007). However, not only the white-line intensity but also the overall spectral shape in the near-edge region are strongly modified with respect to bulk ZnO. In particular, the intensity of the low-energy shoulder (A) of the main absorption line grows and, at the same time, an overall reduction in amplitude is observed. This behaviour suggests that the observed variations in the XANES spectrum are associated with structural effects rather than exclusively with charge-transfer effects.
Taking into account that the Zn-S interatomic distance in ZnS is $2.34 Å , while the Zn-O distance in ZnO is 1.97 Å , it seems reasonable to think that, upon formation of Zn-S bonds at the surface of the NPs, the spectral shape and the intensity of the main XANES features might change, even in the absence of charge-transfer effects. Hence, a detailed ab initio computation of the Zn K-edge XANES spectra of these ZnO NPs was performed by considering a different local structure of the Zn atoms in the inner part of the NP and those at the surface, where the bonding with the capping molecule takes place Guglieri & Chaboy, 2010).
In order to assess the aforesaid possibility, the computations were performed for a ZnO cluster including coordination shells within the first 8 Å around ZnO, i.e. as expected for bulk-like ZnO XANES, and for the same cluster but progressively substituting the four next-neighbour O atoms with S ones. This substitution was made at the same crystallographic positions, i.e. assuming a Zn-S interatomic distance equal to the Zn-O one, and also by increasing the Zn-S bond length as for wurtzite-ZnS (w-ZnS). As shown in Fig. 17, despite the fact that only four atoms have been changed in the cluster of 177 atoms, the effect on the XANES spectrum is dramatic, especially concerning the near-edge region. Moreover, it is observed that, while the simple substitution of S at the oxygen positions does not reproduce the experimental spectrum, when the interatomic distance of the substituted Zn-S bonds is set equal to that of w-ZnS (hereinafter ZnO-S), the theoretical spectrum resembles the experimental Thiol one. In particular, the intensity ratio of peaks A and B is inverted in both ZnO and ZnO-S calculations, which mimics the experimental differences of the Zn K-edge XANES spectra of both bulk ZnO and Thiol-capped ZnO NPs samples: the intensity of the main absorption line (B peak) feature articles IUCrJ (2014). 1, 571-589 Kuzmin and Chaboy XAS at the nanoscale 583

Figure 16
A comparison of the experimental Zn K-edge XANES spectra for ZnO nanoparticles capped with Topo (green, filled circles), Amine (blue, open circles) and Thiol (red, filled squares) [from Guglieri & Chaboy (2010) and Guglieri et al. (2012)]. For the sake of comparison, the XANES spectra of both bulk ZnO (black, solid line) and ZnO nanopowder (purple, dotted line) are also shown.   ] and the theoretical signal computed for a ZnO cluster in which the oxygen atoms in the first coordination shell have been progressively substituted by S atoms and the Zn-S interatomic distance is set equal to that of bulk ZnS. (b) The same as part (a) for the case of spectra obtained by adding the theoretical signal computed for an 8 Å ZnO cluster and the same cluster in which the four O nextneighbours have been substituted by S and by imposing the Zn-S interatomic distance of w-ZnS (ZnOS) with different relative weights: pure ZnO (black, solid line), 90% ZnO + 10% ZnOS (green, dashed line), 75% ZnO + 25% ZnOS (blue, dotted line), 50% ZnO + 50% ZnOS (red, dot-dashed line). decreases and that of the low-energy A peak increases as the ZnO NPs are capped with Thiol. Finally, the expected Zn K-edge XANES signal was built up by considering that the experimental XANES spectrum corresponds to the weighted addition of contributions from Zn atoms within the ZnO frame at the inner part of the particle and from those bonded to S near the surface. The results, reported in Fig. 17, show that, as the weight of the ZnS contribution increases, the computed signal agrees with the observed evolution of XANES from bulk ZnO to the Thiol sample.
These results indicate, on the one hand, that the observed modifications of the Zn K-edge XANES spectra in these capped ZnO NPs are due to structural modifications and not to charge-transfer effects. The case of samples capped with Thiol is especially significant as the XANES spectrum is highly affected by the Zn-S scattering contributions, and comparison of the experimental spectra and ab initio computations indicates the formation of a well defined ZnS interface at the surface of the nanoparticle in which ZnS adopts the local structure of wurtzite. Therefore, these findings suggest that the HTFM behaviour observed in these NPs is related to this interface, the details of which (thickness, interpenetration, etc.) should determine the particular magnetic properties of each system (Guglieri et al., 2012(Guglieri et al., , 2013. A similar analysis can be applied to the study of the O K-edge in Al-doped ZnO (AZO) NPs and films showing HTFM behaviour (Ma et al., 2009;Gao et al., 2010;Xing et al., 2013;Chen et al., 2009). While several authors concluded that metallic clusters of Al are responsible for the observed HTFM (Ma et al., 2009), it has also been proposed that this behaviour arises from charge transfer between Zn and Al . In this scenario, in which both structural and electronic effects are claimed to be responsible for the HTFM behaviour, X-ray absorption spectroscopy (XAS) constitutes an incomparable tool due to its capability of simultaneously providing element-selective electronic and structural information.
The normalized O K-edge XAS spectra recorded on Aldoped ZnO NPs [Al 0.2 /(ZnO) 0.8 ] and Zn 1Àx Al x O films reported by, respectively, Chen et al. (2012) and Ma et al. (2009), are compared in Fig. 18. The XAS spectrum of the asprepared Al 0.2 /(ZnO) 0.8 NPs is similar to that of bulk ZnO, although the intensities of the main spectral features were found to decrease slightly compared with those of pure ZnO . This reduction was assigned to a decrease in the available empty O 2p states and interpreted in terms of charge transfer from Al to O. The same argument was extended to the case of a sample annealed at 923 K (marked ZnO/Al NPs in Fig. 18), concluding that, because the intensity is further reduced, a greater degree of occupancy of the 2p states of O in the ZnO matrix takes place in the system as a consequence of increased charge transfer from adsorbed Al. In this way, the observed increase in saturation magnetization is related to the aforesaid charge transfer from adsorbed Al to ZnO surfaces, giving rise to the observed ferromagnetic behaviour in ZnO/Al NPs . However, it is worth noting in this respect that the spectral shape of the sample subject to annealing, showing HTFM, is completely different from that of ZnO, suggesting the occurrence of a dramatic structural change in the sample. Indeed, the normalized O K-edge XAS spectra recorded on Al-doped ZnO NPs [Al 0.2 /(ZnO) 0.8 ] and Zn 1Àx Al x O films show that, while the spectrum of the nonmagnetic (Zn 0.98 Al 0.02 )O film looks similar to that of pure ZnO, that of the magnetic (Zn 0.80 Al 0.20 )O film is significantly different from that of pure ZnO and its O K-edge is more related to that of amorphous Al 2 O 3 . Combined with photoluminescence data, these results were interpreted as the observed ferromagnetism being due to oxygen vacancies at the surface or grain boundaries (Schoenhalz et al., 2009) Chen et al. (2012) and Ma et al. (2009), respectively] and the theoretical computations performed for ZnO, ZnAl 2 O 4 and Al 2 O 3 . The computed spectra (dashed lines) have been convoluted with a Lorentzian shape function to account for the broadening associated with the core-hole lifetime and the experimental resolution. modification of the XAS spectra, i.e. these changes are either due to electronic effects or they are due to structural changes associated with the Al-ZnO interaction.
Trying to shed light on this problem, Guglieri and Chaboy  have studied how the modification of the local structural environment of oxygen affects the spectral shape using a detailed ab initio calculation of the O Kedge XANES spectrum with the multiple-scattering program CONTINUUM (Natoli et al., 1980). A complete discussion of the procedure can be found elsewhere . The initial computations were performed for a wurtzite-like w-ZnO cluster, including contributions from neighbouring atoms located within the first 8 Å around the photoabsorbing oxygen atom. As shown in Fig. 18, this calculation leads to the correct reproduction of the shape and energy position of the different spectral features and of both their relative energy separation and the intensity ratio . It should be noted that the computations were performed using neutral charge densities, i.e. no charge transfer has been considered. The good agreement between the experimental and theoretical spectra indicates that the local structure is the main factor governing the experimental spectral shape and, consequently, only subtle changes are expected if charge-transfer effects occur. Consequently, the dramatic changes in the XANES spectra observed for the Al-doped samples showing ferromagnetic behaviour cannot be accounted for in terms of charge-transfer effects but they do suggest the occurrence of structural effects.
With the aim of discerning the structural origin of the observed results different possibilities were explored, i.e. that dopant Al ions diffuse into the ZnO matrix and occupy substitutional locations , or the formation of an interface between a ZnO nanowire core and an Al 2 O 3 shell. The results of the calculations (not shown) clearly indicate that Al does not enter the ZnO matrix. The existence of a chemical reaction product between ZnO and Al after thermal treatment has been also considered, as proposed in XAS studies on Zn-doped Al 2 O 3  or for Al-doped ZnO nanowires (Xing et al., 2013). Accordingly, the computation of the O K-edge XAS spectrum was also performed in the case of both ZnAl 2 O 4 and Al 2 O 3 . In the former case the next-neighbour oxygen arrangement is formed by three Al atoms at $1.91 Å and one Zn at 1.95 Å , i.e. Zn is still present in the first coordination shell, whereas it is absent in the case of Al 2 O 3 . The results of the computations, displayed on a unique energy scale, are shown in Fig. 18. The calculations show that, in the case of ZnAl 2 O 4 , the spectral intensity in the low-energy region of the spectrum increases compared with that of w-ZnO. Starting from pure w-ZnO it is observed that, by increasing the oxygen contribution to the spectra coming from a ZnAl 2 O 4 -like arrangement, the main absorption features become broader and the intensity of the main absorption peak decreases. This is in agreement with the modification of the ZnO experimental spectrum observed for the low-content Al films. Moreover, the shift to higher energies, together with further spectroscopic broadening of the absorption peaks observed in both films and annealed NPs, i.e. those compounds showing ferromagnetism, resembles that of pure Al 2 O 3 . All in all, these results suggest the existence of a dramatic structural modification of the original wurtzite w-ZnO structure at the surface of the materials, leading to the formation of Al-rich regions with prevailing Al-O bonds. The observed broadening of the spectra indicates that these regions are strongly disordered. These results are in agreement with those previously found in the case of capped ZnO NPs, suggesting that HTFM is associated with the details of the formed interface.

Conclusions
X-ray absorption spectroscopy is well suited to the investigation of nanomaterials, and size-dependent effects are readily detectable for nanoparticles having a size below about 10-15 nm. Analysis of the nearest coordination shells around a photoabsorber can be performed using conventional methods of analysis to determine the local structure parameters and degree of disorder. However, more advanced simulation techniques should be used to describe the structure and dynamics of a nanoparticle as a whole. Among these, classical molecular dynamics has some advantages, due to the small number of force-field model parameters, the ability explicitly to incorporate thermal and static disorder effects, and relatively low computational costs. At the same time, it is limited to the high-temperature region and fails when strong electron-phonon interactions occur. In this case, the reliability of the approach can be improved and extended by employing more accurate but computationally much more heavy ab initio molecular dynamics simulations, allowing the parameter-free analysis of experimental EXAFS data. In the case of XANES, the comparison of experimental and ab initio theoretical spectra demonstrates that the modification of the spectral shape associated with the change in size scale is mainly determined by local structure effects. Consequently, special attention should be paid to addressing the occurrence of effects due to the nanosized nature of the materials, such as charge-transfer effects, the existence and type of vacancies etc., based only on the modification of the XANES spectra compared with the bulk ones.