NEXAFS and XPS studies of nitrosyl chloride