Substitutional doping of carbon nanotubes to control their electromagnetic characteristics