Global dynamics of a delayed SIRS epidemic model with a wide class of nonlinear incidence rates