Interactions between transition metals and defective carbon nanotubes