Vibrational motion and geometrical structure in adsorbed CO studied by core level photoelectron spectroscopy