Bifurcation analysis of a competitive system with general toxic production and delayed toxic effects