Process dependent path planning for machining with industrial robots