Machine learning and 3D printing yield steel-strong, foam-light materials