Machine-learning system accelerates discovery of new materials for 3D printing