Internal atomic-scale structure and photothermal dynamics of heterostructured nanomaterials