Near-edge core photoabsorption in polyacenes: model molecules for graphite