Modelization of epitaxial GaAs X-ray detectors