Performance of the ESA PCD and the calibration of photon counting detectors