Gravar-mail: Spectroscopy with a CdTe-based photon-counting imaging detector (PCD) having charge sharing correction capability