Estimation and Prediction of Financial Contagion through Trade