Surface anchoring and dynamics of thiolated azobenzene molecules on Au(111).