Competition mechanism of brittle–ductile transition of metals under tensile condition