Propagation of financial shocks in an input-output economy with trade and financial linkages of firms