Statistics for Multilayer Energy Discriminating Detector for Medical X-ray Imaging Applications