Efficient machining of complex-shaped seal slots for turbomachinery