Convergence results in SIR epidemic models with varying population sizes