Detection rate dependence of the inherent detection efficiency in single-photon detectors based on avalanche diodes