A comparative study of curve-fitting algorithms used for radiation detector efficiencies