Molecular dynamics study of the growth of optical fibers