Applications of ion-implanted passivated silicon detectors to x-ray analysis