The effect of linewidth on the efficiency of two-photon-pumped frequency converters