Multiple-scattering corrections to the extended x-ray absorption fine structure