Electronic excitations induced by surface reactions of H and D on gold