Iterative NC program modification and energy saving for a CNC machine tool feed drive system with linear motors