Tailoring Bi2Te3 edge with semiconductor and metal properties under electron beam irradiation