Optimal Relay and Saturating Control System Synthesis