Soft X ray absorption spectroscopy