X-ray-absorption near-edge-structure study of diamond: A multiple-scattering approach