A multiscale component mode synthesis approach for dynamic analysis of nanostructures