Core-hole effects in x-ray-absorption spectra of fullerenes