Production and credit networks : When does trade credit amplify shocks ?