Distinct roles of the Gcn5 histone acetyltransferase revealed during transient stress-induced reprogramming of the genome