Functionalization, self-assembly, and photoswitching quenching for azobenzene derivatives adsorbed on Au(111).