X-ray radiation from RHEED and from XPS