Atomic structure sensitivity of XPS: The oxidation of cobalt