Multiscale thermal models of nanostructured devices