Kinetic Inductance Detectors for X-Ray Spectroscopy