Extinction and periodic solutions for an impulsive SIR model with incidence rate stochastically perturbed