Wave Optics Theory of Rotary Compensators