Role of covalent defects on phonon softening in metallic carbon nanotubes.