A Comprehensive Guide to CNC Machining: Principles, Types, and Technologies