Performance of carbon nanotube field effect transistors with doped source and drain extensions and arbitrary geometry