A cost-driven process planning framework for selective laser melting