Thermochromic nanophotonics for emissivity control