Azobenzene-functionalized N-heterocyclic carbenes as photochromic ligands in silver(i) and gold(i) complexes.