Modeling the structure and composition of nanoparticles by extended X-ray absorption fine-structure spectroscopy.