An atomistic–continuum multiscale analysis for heterogeneous nanomaterials and its application in nanoporous gold foams