Process planning for the subtractive rapid manufacturing of heterogeneous materials: Applications for automated bone implant manufacturing