Theoretical description of the NEXAFS Cl 1s and 2p spectra of ClF and ClF3