Core holes in chemisorbed atoms