Structural insights into the redox-switch mechanism of the MarR/DUF24-type regulator HypR