Coupled feedback loops control the stimulus-dependent dynamics of the yeast transcription factor Msn2