Code and data files for "Financial Frictions and Total Factor Productivity: Accounting for the Real Effects of Financial Crises"