Credit chains and bankruptcy propagation in production networks