Heat-induced perfect light absorption in thin-film metasurfaces for structural coloring