Uncertainty calculation of functions of γ-ray detector efficiency and its usage in comparator experiments