Metallization of the semiconducting carbon nanotube by encapsulated bromine molecules