Injection molding of metals and ceramics