NEXAFS studies of halobenzenes and phenyl groups on Cu(111)