Modeling the linewidth dependence of coherent terahertz emission from intrinsic Josephson junction stacks in the hot-spot regime