Development of the MIC photon counting detector for the XMM optical monitor.