X-ray Spectroscopy in Fusion Research