Schottky contacts to high-resistivity epitaxial GaAs layers for detectors of particles and X- or γ-ray photons