Global dynamics of a Filippov epidemic system with nonlinear thresholds