X-ray detectors based on epitaxial gallium arsenide