Multiscale simulations of carbon nanotube nucleation and growth: electronic structure calculations.