Anti-Sway Control of a Rotary Crane via Two-Mode Switching Control