GaAs X-ray detector characterization through a 3D finite element model