Soft X-ray spectroscopy