Automated process planning for metal hybrid additive and subtractive manufacturing