The Impact of Firm Heterogeneity in Aggregated Productivity: Firm Entry, Financial Selection, and Capital Misallocation