NMR spectroscopic study of xenon fluorides in the gas phase and of XeF2 in the solid state