Dynamic multifunctional devices enabled by ultrathin metal nanocoatings with optical/photothermal and morphological versatility