Text this: Pulse pileup statistics for energy discriminating photon counting x-ray detectors.