Ab initio calculation of curved-wave EXAFS amplitude and phase functions