Quantitative analysis of XANES spectra of disordered systems based on molecular dynamics.