Gallium arsenide pixel detectors for medical imaging