Task-informed Metrologies for Characterization and Optimization in Spectral CT