Dose minimization for material-selective CT with energy-selective detectors