Rotating electromagnetic waves in toroid-shaped regions