Process-Planning for Layered Manufacturing of Heterogeneous Objects Using Direct Metal Deposition