Probing the doping in metallic and semiconducting carbon nanotubes by Raman and transport measurements