Investigating the performance limits of silicon-nanowire and carbon-nanotube FETs