The effect of 3d-metal intercalation on the electronic structure of metallic and semiconducting nanotubes