A computationally efficient multiscale finite element formulation for dynamic and postbuckling analyses of carbon nanotubes