Principles of redox control in photosynthesis gene expression