Threshold dynamics of a stochastic general SIRS epidemic model with migration