Dynamics of an SEIR epidemic model with nonlinear incidence and treatment rates