Ab Initio Study of Doped Carbon Nanotube Sensors