Gettering of gold by rapid thermal processing