CubicML: Automated ML for Distributed ML Systems Co-design with ML Prediction of Performance