Ca2+ and Mg2+ modulate conformational dynamics and stability of downstream regulatory element antagonist modulator