X-Ray Spectroscopy in Astrophysics