Regulatory mechanisms of thiol-based redox sensors: lessons learned from structural studies on prokaryotic redox sensors