Time-dependent quantum transport and nonquasistatic effects in carbon nanotube transistors