Single photon counting pixel detectors for synchrotron radiation experiments