Design and performance of doped carbon nanotube-based thermoelectric devices