Validation of analytical formula for the efficiency calibration of gamma detectors using coaxial and off-axis extended sources