X-Ray Computed Tomography Using Energy-Resolving Photon-Counting Detectors: Principles and Applications