Shifts in the energies of gold K X-rays and the role of the excitation mechanism