X-ray electron and X-ray spectral study of carbyne