Photonic gears for ultra-sensitive angular measurements