Silicon-based photon counting X-ray detector for synchrotron applications