Core-hole effects in fullerene molecules and small-diameter conducting nanotubes: a density functional theory study